Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00142/0.00142, allocations: 113 kB / 18.49 MB, free: 4.598 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001409/0.001409, allocations: 213.4 kB / 21.45 MB, free: 1.652 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.499/1.499, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2471/0.2471, allocations: 46.92 MB / 357.8 MB, free: 10.3 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_ZeroThresholds",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_ZeroThresholds",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002268/0.002268, allocations: 59.91 kB / 0.4916 GB, free: 7.949 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1384/0.1407, allocations: 66 MB / 0.5561 GB, free: 5.82 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003388/0.1441, allocations: 1.718 MB / 0.5577 GB, free: 4.09 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005096/0.1446, allocations: 151.6 kB / 0.5579 GB, free: 3.941 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.003e-05/0.1447, allocations: 7.938 kB / 0.5579 GB, free: 3.934 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 4.178e-05/0.1447, allocations: 11.86 kB / 0.5579 GB, free: 3.922 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.14e-05/0.1448, allocations: 11.88 kB / 0.5579 GB, free: 3.91 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003706/0.1452, allocations: 103.8 kB / 0.558 GB, free: 3.809 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001967/0.1454, allocations: 99.75 kB / 0.5581 GB, free: 3.711 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.1455, allocations: 25.39 kB / 0.5581 GB, free: 3.684 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.013e-05/0.1456, allocations: 51.83 kB / 0.5582 GB, free: 3.633 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.412e-05/0.1456, allocations: 39.78 kB / 0.5582 GB, free: 3.594 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.898e-05/0.1457, allocations: 8 kB / 0.5582 GB, free: 3.586 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.044e-05/0.1457, allocations: 8 kB / 0.5582 GB, free: 3.578 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.025e-05/0.1457, allocations: 19.92 kB / 0.5582 GB, free: 3.559 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 7.232e-05/0.1458, allocations: 51.7 kB / 0.5583 GB, free: 3.508 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001623/0.146, allocations: 87.64 kB / 0.5584 GB, free: 3.422 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.146, allocations: 3.938 kB / 0.5584 GB, free: 3.418 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.146, allocations: 0 / 0.5584 GB, free: 3.418 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.196e-05/0.146, allocations: 3.984 kB / 0.5584 GB, free: 3.414 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.0007825/0.1468, allocations: 442.9 kB / 0.5588 GB, free: 2.93 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.1468, allocations: 15.97 kB / 0.5588 GB, free: 2.914 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.626e-05/0.1468, allocations: 4.188 kB / 0.5588 GB, free: 2.91 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.205e-05/0.1469, allocations: 38.73 kB / 0.5589 GB, free: 2.863 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.757e-05/0.1469, allocations: 28.83 kB / 0.5589 GB, free: 2.836 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003031/0.1472, allocations: 196.2 kB / 0.5591 GB, free: 2.605 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.343e-05/0.1472, allocations: 4.375 kB / 0.5591 GB, free: 2.602 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.082e-05/0.1472, allocations: 8.375 kB / 0.5591 GB, free: 2.594 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003883/0.1476, allocations: 156.1 kB / 0.5592 GB, free: 2.422 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.1476, allocations: 0 / 0.5592 GB, free: 2.422 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.651e-05/0.1477, allocations: 4 kB / 0.5592 GB, free: 2.418 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.1477, allocations: 4 kB / 0.5593 GB, free: 2.414 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004081/0.1481, allocations: 111.8 kB / 0.5594 GB, free: 2.305 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007869/0.1489, allocations: 0.5438 MB / 0.5599 GB, free: 1.703 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004558/0.1493, allocations: 130.5 kB / 0.56 GB, free: 1.566 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001936/0.1495, allocations: 56.84 kB / 0.5601 GB, free: 1.508 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.388e-05/0.1495, allocations: 0 / 0.5601 GB, free: 1.508 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.164e-05/0.1496, allocations: 38.5 kB / 0.5601 GB, free: 1.461 MB / 414.1 MB Notification: Performance of pre-optimization done (n=8): time 1.393e-06/0.1496, allocations: 0 / 0.5601 GB, free: 1.461 MB / 414.1 MB Notification: Performance of matching and sorting (n=8): time 0.0007231/0.1503, allocations: 193.6 kB / 0.5603 GB, free: 1.266 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.324e-05/0.1504, allocations: 102.8 kB / 0.5604 GB, free: 1.141 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001611/0.1505, allocations: 143.2 kB / 0.5605 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.261e-05/0.1506, allocations: 25.7 kB / 0.5605 GB, free: 0.957 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.794e-05/0.1506, allocations: 108.2 kB / 0.5607 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.285e-05/0.1507, allocations: 27.78 kB / 0.5607 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.2e-05/0.1507, allocations: 29.72 kB / 0.5607 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.1509, allocations: 322.8 kB / 0.561 GB, free: 472 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001956/0.1511, allocations: 47.95 kB / 0.5611 GB, free: 424 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002359/0.1513, allocations: 88.17 kB / 0.5611 GB, free: 320 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003754/0.1517, allocations: 114.5 kB / 0.5613 GB, free: 196 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1517, allocations: 0 / 0.5613 GB, free: 196 kB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004537/0.1522, allocations: 153.5 kB / 0.5614 GB, free: 36 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.1522, allocations: 4 kB / 0.5614 GB, free: 32 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.1522, allocations: 3.938 kB / 0.5614 GB, free: 28 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.1522, allocations: 4 kB / 0.5614 GB, free: 24 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001801/0.1524, allocations: 23.97 kB / 0.5614 GB, free: 0 / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.357e-06/0.1524, allocations: 8.047 kB / 0.5614 GB, free: 15.99 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001564/0.1525, allocations: 32.05 kB / 0.5615 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.507e-05/0.1526, allocations: 8 kB / 0.5615 GB, free: 15.95 MB / 430.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.0001207/0.1527, allocations: 124 kB / 0.5616 GB, free: 15.82 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.807e-05/0.1527, allocations: 7.953 kB / 0.5616 GB, free: 15.81 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.671e-05/0.1528, allocations: 12.7 kB / 0.5616 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.1528, allocations: 4 kB / 0.5616 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.665e-05/0.1528, allocations: 7.938 kB / 0.5616 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.1528, allocations: 0 / 0.5616 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002526/0.153, allocations: 205.6 kB / 0.5618 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.153, allocations: 3.938 kB / 0.5618 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001197/0.1532, allocations: 23.97 kB / 0.5619 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.1532, allocations: 0 / 0.5619 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.1532, allocations: 4 kB / 0.5619 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.654e-06/0.1532, allocations: 0 / 0.5619 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.1532, allocations: 7.938 kB / 0.5619 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004961/0.1537, allocations: 243.7 kB / 0.5621 GB, free: 15.24 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.897e-05/0.1537, allocations: 85.06 kB / 0.5622 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.084e-05/0.1538, allocations: 0 / 0.5622 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00017/0.1539, allocations: 27.97 kB / 0.5622 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.572e-05/0.154, allocations: 19.86 kB / 0.5622 GB, free: 15.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.573e-06/0.154, allocations: 3.938 kB / 0.5622 GB, free: 15.09 MB / 430.1 MB Notification: Performance of sorting global known variables: time 9.242e-05/0.1541, allocations: 108.4 kB / 0.5623 GB, free: 14.99 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1541, allocations: 0 / 0.5623 GB, free: 14.99 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002753/0.1544, allocations: 23.94 kB / 0.5624 GB, free: 14.96 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.000834/0.1552, allocations: 0.767 MB / 0.5631 GB, free: 14.17 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0004571/0.1557, allocations: 116 kB / 0.5632 GB, free: 14.06 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1557, allocations: 0 / 0.5632 GB, free: 14.06 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000201/0.1559, allocations: 59.88 kB / 0.5633 GB, free: 14 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003269/0.1562, allocations: 19.94 kB / 0.5633 GB, free: 13.98 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002676/0.1589, allocations: 1.667 MB / 0.5649 GB, free: 12.22 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003658/0.1592, allocations: 0.7039 MB / 0.5656 GB, free: 11.49 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.992e-05/0.1593, allocations: 12.66 kB / 0.5656 GB, free: 11.48 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.289e-05/0.1594, allocations: 31.42 kB / 0.5656 GB, free: 11.45 MB / 430.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1594, allocations: 0 / 0.5656 GB, free: 11.45 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01999/0.1793, allocations: 2.799 MB / 0.5684 GB, free: 8.742 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.478/8.657, allocations: 8 kB / 0.5684 GB, free: 8.734 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_ZeroThresholds_fmu --startTime=0 --stopTime=1 --stepSize=0.00019988 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_ZeroThresholds.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.706156286003534] Failed to read output from testmodel.py, exit status != 0: ['time', 'ramp.y', 'greaterThreshold.y', 'greaterEqualThreshold.y', 'lessThreshold.y', 'lessEqualThreshold.y'] 8.782231135002803 8.797757393 8.648886805 Calling exit ...