Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.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.001607/0.001607, allocations: 117.3 kB / 18.5 MB, free: 4.434 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.001535/0.001535, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.541/1.541, allocations: 230.2 MB / 254.5 MB, free: 15.26 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2414/0.2414, allocations: 46.9 MB / 357.4 MB, free: 10.48 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002257/0.002257, allocations: 79.86 kB / 0.4912 GB, free: 8.328 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.145/0.1472, allocations: 65.99 MB / 0.5557 GB, free: 6.211 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003184/0.1504, allocations: 1.719 MB / 0.5574 GB, free: 4.473 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004982/0.1509, allocations: 163.5 kB / 0.5575 GB, free: 4.312 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.071e-05/0.151, allocations: 0 / 0.5575 GB, free: 4.312 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.994e-05/0.151, allocations: 7.875 kB / 0.5575 GB, free: 4.305 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.853e-05/0.1511, allocations: 11.88 kB / 0.5575 GB, free: 4.293 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003842/0.1515, allocations: 110.3 kB / 0.5576 GB, free: 4.188 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.000187/0.1517, allocations: 99.75 kB / 0.5577 GB, free: 4.09 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/0.1518, allocations: 29.39 kB / 0.5578 GB, free: 4.059 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.874e-05/0.1519, allocations: 43.84 kB / 0.5578 GB, free: 4.016 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.103e-05/0.1519, allocations: 43.77 kB / 0.5579 GB, free: 3.973 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.836e-05/0.152, allocations: 12 kB / 0.5579 GB, free: 3.961 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.842e-05/0.152, allocations: 8 kB / 0.5579 GB, free: 3.953 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.573e-05/0.152, allocations: 15.92 kB / 0.5579 GB, free: 3.938 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 5.3e-05/0.1521, allocations: 47.73 kB / 0.5579 GB, free: 3.891 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001338/0.1522, allocations: 91.56 kB / 0.558 GB, free: 3.801 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.105e-06/0.1522, allocations: 0 / 0.558 GB, free: 3.801 MB / 414.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1522, allocations: 0 / 0.558 GB, free: 3.801 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.256e-06/0.1522, allocations: 3.938 kB / 0.558 GB, free: 3.797 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0006779/0.1529, allocations: 450.9 kB / 0.5585 GB, free: 3.305 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.1529, allocations: 12.03 kB / 0.5585 GB, free: 3.293 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.567e-05/0.153, allocations: 34.75 kB / 0.5585 GB, free: 3.25 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.407e-05/0.153, allocations: 24.83 kB / 0.5585 GB, free: 3.227 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002272/0.1532, allocations: 196.2 kB / 0.5587 GB, free: 2.996 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.798e-06/0.1532, allocations: 4.375 kB / 0.5587 GB, free: 2.992 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.547e-05/0.1533, allocations: 12.31 kB / 0.5587 GB, free: 2.98 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003247/0.1536, allocations: 144.5 kB / 0.5589 GB, free: 2.82 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.1536, allocations: 7.938 kB / 0.5589 GB, free: 2.812 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.1536, allocations: 4 kB / 0.5589 GB, free: 2.809 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.1536, allocations: 4 kB / 0.5589 GB, free: 2.805 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003408/0.154, allocations: 107.8 kB / 0.559 GB, free: 2.699 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006467/0.1546, allocations: 0.5516 MB / 0.5595 GB, free: 2.09 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003846/0.155, allocations: 134.5 kB / 0.5596 GB, free: 1.949 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001724/0.1552, allocations: 52.84 kB / 0.5597 GB, free: 1.895 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.456e-05/0.1552, allocations: 0 / 0.5597 GB, free: 1.895 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.814e-05/0.1552, allocations: 34.56 kB / 0.5597 GB, free: 1.852 MB / 414.1 MB Notification: Performance of pre-optimization done (n=8): time 7.51e-07/0.1552, allocations: 0 / 0.5597 GB, free: 1.852 MB / 414.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005979/0.1558, allocations: 193.4 kB / 0.5599 GB, free: 1.656 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.623e-05/0.1559, allocations: 102.8 kB / 0.56 GB, free: 1.531 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001221/0.156, allocations: 144.4 kB / 0.5602 GB, free: 1.379 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.156, allocations: 29.7 kB / 0.5602 GB, free: 1.344 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.382e-05/0.1561, allocations: 112.2 kB / 0.5603 GB, free: 1.23 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.26e-05/0.1561, allocations: 23.8 kB / 0.5603 GB, free: 1.207 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.702e-05/0.1562, allocations: 25.7 kB / 0.5603 GB, free: 1.176 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.1563, allocations: 326.8 kB / 0.5606 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001713/0.1565, allocations: 47.95 kB / 0.5607 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002061/0.1567, allocations: 92.17 kB / 0.5608 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000325/0.157, allocations: 114.5 kB / 0.5609 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.157, allocations: 0 / 0.5609 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003976/0.1574, allocations: 145.8 kB / 0.561 GB, free: 436 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.175e-05/0.1574, allocations: 4 kB / 0.561 GB, free: 432 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.456e-06/0.1574, allocations: 4.328 kB / 0.561 GB, free: 428 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.1574, allocations: 4 kB / 0.561 GB, free: 424 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001335/0.1576, allocations: 31.84 kB / 0.5611 GB, free: 392 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.1576, allocations: 3.984 kB / 0.5611 GB, free: 388 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001485/0.1577, allocations: 43.78 kB / 0.5611 GB, free: 344 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.089e-05/0.1577, allocations: 8 kB / 0.5611 GB, free: 336 kB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (lessEqualThreshold.y,lessThreshold.y,greaterEqualThreshold.y,greaterThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001063/0.1578, allocations: 121.8 kB / 0.5612 GB, free: 204 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.61e-05/0.1579, allocations: 7.953 kB / 0.5612 GB, free: 196 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.201e-05/0.1579, allocations: 8.719 kB / 0.5613 GB, free: 184 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.1579, allocations: 4 kB / 0.5613 GB, free: 180 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.275e-06/0.1579, allocations: 0 / 0.5613 GB, free: 180 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.1579, allocations: 7.922 kB / 0.5613 GB, free: 172 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002462/0.1582, allocations: 201.6 kB / 0.5615 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.1582, allocations: 3.984 kB / 0.5615 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001136/0.1583, allocations: 23.92 kB / 0.5615 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.1583, allocations: 4 kB / 0.5615 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.1583, allocations: 3.984 kB / 0.5615 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.1583, allocations: 4 kB / 0.5615 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.1583, allocations: 0 / 0.5615 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004301/0.1587, allocations: 239.3 kB / 0.5617 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.868e-05/0.1588, allocations: 89.05 kB / 0.5618 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.688e-05/0.1588, allocations: 0 / 0.5618 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001564/0.159, allocations: 23.97 kB / 0.5618 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.074e-05/0.159, allocations: 15.92 kB / 0.5618 GB, free: 15.49 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.681e-06/0.159, allocations: 3.938 kB / 0.5619 GB, free: 15.48 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.11e-05/0.1591, allocations: 103.3 kB / 0.5619 GB, free: 15.38 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1591, allocations: 0 / 0.5619 GB, free: 15.38 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002417/0.1593, allocations: 27.94 kB / 0.562 GB, free: 15.36 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (greaterThreshold.y,greaterEqualThreshold.y,lessThreshold.y,lessEqualThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007687/0.1601, allocations: 0.7631 MB / 0.5627 GB, free: 14.57 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0003805/0.1605, allocations: 115.8 kB / 0.5628 GB, free: 14.45 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1605, allocations: 0 / 0.5628 GB, free: 14.45 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001766/0.1607, allocations: 56.08 kB / 0.5629 GB, free: 14.4 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002946/0.1609, allocations: 29.41 kB / 0.5629 GB, free: 14.37 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00225/0.1632, allocations: 1.665 MB / 0.5645 GB, free: 12.61 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003552/0.1636, allocations: 0.6963 MB / 0.5652 GB, free: 11.89 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.517e-05/0.1636, allocations: 13.12 kB / 0.5652 GB, free: 11.88 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.334e-05/0.1637, allocations: 23.44 kB / 0.5653 GB, free: 11.86 MB / 430.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1637, allocations: 4 kB / 0.5653 GB, free: 11.85 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02136/0.185, allocations: 2.76 MB / 0.568 GB, free: 9.152 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.124/8.309, allocations: 8.062 kB / 0.568 GB, free: 9.145 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_ZeroThresholds.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.27020032890141] Failed to read output from testmodel.py, exit status != 0: 8.380053249187768 8.402063161 8.245718449 Calling exit ...