Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001657/0.001657, allocations: 116.9 kB / 18.49 MB, free: 4.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001658/0.001658, allocations: 220.7 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 230.4 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001832/0.001832, allocations: 56.05 kB / 373.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1117, allocations: 53.39 MB / 427.1 MB, free: 4.551 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004707/0.1164, allocations: 2.931 MB / 430 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001431/0.1178, allocations: 0.7206 MB / 430.8 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001725/0.118, allocations: 7.938 kB / 430.8 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002009/0.1182, allocations: 51.5 kB / 430.8 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002545/0.1184, allocations: 115 kB / 430.9 MB, free: 0.707 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003344/0.1188, allocations: 87.89 kB / 431 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004822/0.1193, allocations: 394.4 kB / 431.4 MB, free: 240 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000235/0.1195, allocations: 91.94 kB / 431.5 MB, free: 144 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2103/0.3297, allocations: 150.6 kB / 431.6 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003864/0.3301, allocations: 174.5 kB / 431.8 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001132/0.3302, allocations: 36.5 kB / 431.8 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.87e-05/0.3303, allocations: 38.41 kB / 431.9 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.052e-05/0.3304, allocations: 80.44 kB / 432 MB, free: 7.707 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001921/0.3306, allocations: 173.2 kB / 432.1 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005129/0.3311, allocations: 408.4 kB / 432.5 MB, free: 7.598 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3311, allocations: 0.5 kB / 432.5 MB, free: 7.598 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3311, allocations: 0 / 432.5 MB, free: 7.598 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.809e-05/0.3311, allocations: 1.531 kB / 432.5 MB, free: 7.598 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001251/0.3324, allocations: 0.6788 MB / 433.2 MB, free: 7.098 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/0.3324, allocations: 10.11 kB / 433.2 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.326e-05/0.3325, allocations: 8.281 kB / 433.2 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.395e-05/0.3325, allocations: 64.22 kB / 433.3 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.464e-05/0.3326, allocations: 37.03 kB / 433.3 MB, free: 7.043 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004022/0.333, allocations: 303.8 kB / 433.6 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.345e-05/0.333, allocations: 19 kB / 433.6 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.672e-05/0.3331, allocations: 25.41 kB / 433.7 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005826/0.3337, allocations: 281.9 kB / 433.9 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.3337, allocations: 4.562 kB / 433.9 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.829e-05/0.3337, allocations: 9.812 kB / 434 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.3337, allocations: 7.062 kB / 434 MB, free: 6.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006326/0.3343, allocations: 254 kB / 434.2 MB, free: 6.766 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001561/0.3359, allocations: 1.067 MB / 435.3 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006301/0.3365, allocations: 177.1 kB / 435.5 MB, free: 6.246 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002433/0.3368, allocations: 72.12 kB / 435.5 MB, free: 6.238 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.795e-05/0.3368, allocations: 2.016 kB / 435.5 MB, free: 6.238 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003722/0.3372, allocations: 153.4 kB / 435.7 MB, free: 6.168 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.463e-06/0.3372, allocations: 1.531 kB / 435.7 MB, free: 6.168 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.001079/0.3383, allocations: 385.2 kB / 436.1 MB, free: 6.012 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.287e-05/0.3383, allocations: 105.9 kB / 436.2 MB, free: 5.887 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003548/0.3387, allocations: 328.5 kB / 436.5 MB, free: 5.781 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.3387, allocations: 34.05 kB / 436.5 MB, free: 5.746 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000111/0.3388, allocations: 218.1 kB / 436.7 MB, free: 5.605 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.56e-05/0.3388, allocations: 41.64 kB / 436.8 MB, free: 5.582 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.779e-05/0.3389, allocations: 62.95 kB / 436.8 MB, free: 5.559 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.642e-05/0.339, allocations: 339.8 kB / 437.2 MB, free: 5.246 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000289/0.3393, allocations: 86.55 kB / 437.2 MB, free: 5.246 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003186/0.3396, allocations: 212.2 kB / 437.4 MB, free: 5.098 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000554/0.3401, allocations: 306.8 kB / 437.7 MB, free: 4.922 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.3402, allocations: 1.031 kB / 437.7 MB, free: 4.922 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008172/0.341, allocations: 387.2 kB / 438.1 MB, free: 4.824 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.132e-05/0.341, allocations: 37.91 kB / 438.2 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.341, allocations: 4.188 kB / 438.2 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001792/0.3412, allocations: 29.91 kB / 438.2 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002482/0.3414, allocations: 63.42 kB / 438.3 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007515/0.3422, allocations: 1.412 MB / 439.7 MB, free: 3.426 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000337/0.3425, allocations: 49.27 kB / 439.7 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.546e-05/0.3426, allocations: 15.66 kB / 439.7 MB, free: 3.41 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 7 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,opAmp.satNeg,opAmp.satPos,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001248/0.3427, allocations: 151.8 kB / 439.9 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.094e-05/0.3427, allocations: 34.05 kB / 439.9 MB, free: 3.273 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.055e-05/0.3428, allocations: 32.03 kB / 439.9 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.3428, allocations: 2.312 kB / 439.9 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.3428, allocations: 4.875 kB / 440 MB, free: 3.262 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.3428, allocations: 1.75 kB / 440 MB, free: 3.262 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003936/0.3432, allocations: 460.7 kB / 440.4 MB, free: 2.957 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3432, allocations: 1.469 kB / 440.4 MB, free: 2.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001502/0.3433, allocations: 23.53 kB / 440.4 MB, free: 2.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.572e-05/0.3434, allocations: 33.25 kB / 440.5 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.486e-05/0.3434, allocations: 4.453 kB / 440.5 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006588/0.3441, allocations: 1.393 MB / 441.9 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.3441, allocations: 1.125 kB / 441.9 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006054/0.3447, allocations: 263.2 kB / 442.1 MB, free: 1.457 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.847e-05/0.3448, allocations: 112.3 kB / 442.2 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.857e-05/0.3448, allocations: 7.031 kB / 442.2 MB, free: 1.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002189/0.345, allocations: 24.89 kB / 442.3 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.024e-05/0.3451, allocations: 27.66 kB / 442.3 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.372e-05/0.3451, allocations: 4.344 kB / 442.3 MB, free: 1.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002316/0.3453, allocations: 235.5 kB / 442.5 MB, free: 1.195 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3453, allocations: 0 / 442.5 MB, free: 1.195 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003622/0.3457, allocations: 72.16 kB / 442.6 MB, free: 1.184 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,opAmp.satPos,opAmp.satNeg,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007885/0.3465, allocations: 0.7954 MB / 443.4 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008367/0.3473, allocations: 385.4 kB / 443.8 MB, free: 300 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.3473, allocations: 2.031 kB / 443.8 MB, free: 300 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003856/0.3477, allocations: 210.3 kB / 444 MB, free: 160 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003428/0.3481, allocations: 46.14 kB / 444 MB, free: 140 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004945/0.353, allocations: 3.129 MB / 447.1 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004301/0.3534, allocations: 0.7587 MB / 447.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001502/0.3536, allocations: 39.31 kB / 447.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001704/0.3538, allocations: 92.48 kB / 448 MB, free: 13.26 MB / 366.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3538, allocations: 0 / 448 MB, free: 13.26 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03061/0.3844, allocations: 6.504 MB / 454.5 MB, free: 12.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.31/10.69, allocations: 6.609 kB / 454.5 MB, free: 12.1 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.112438929034397] Failed to read output from testmodel.py, exit status != 0: ['time', 'opAmp.out.v', 'opAmp.out.i'] 10.831732184975408 10.848471348 10.514298671 Calling exit ...