Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.001659/0.001659, allocations: 118.7 kB / 18.5 MB, free: 4.602 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.002431/0.002431, allocations: 210.5 kB / 21.46 MB, free: 1.648 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.54/1.54, allocations: 230.2 MB / 254.5 MB, free: 15.28 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2413/0.2413, allocations: 46.89 MB / 357.4 MB, free: 10.63 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-beta.om/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_4_1_0-beta_om_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ZeroThresholds,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ZeroThresholds",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002316/0.002316, allocations: 83.86 kB / 0.4912 GB, free: 8.625 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1408, allocations: 65.98 MB / 0.5556 GB, free: 6.523 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ZeroThresholds): time 0.003106/0.1439, allocations: 1.72 MB / 0.5573 GB, free: 4.785 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004466/0.1443, allocations: 163.5 kB / 0.5575 GB, free: 4.625 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.718e-05/0.1444, allocations: 0 / 0.5575 GB, free: 4.625 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.815e-05/0.1445, allocations: 7.875 kB / 0.5575 GB, free: 4.617 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.541e-05/0.1445, allocations: 11.88 kB / 0.5575 GB, free: 4.605 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003661/0.1449, allocations: 111.5 kB / 0.5576 GB, free: 4.5 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001717/0.1451, allocations: 103.8 kB / 0.5577 GB, free: 4.398 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001216/0.1452, allocations: 21.39 kB / 0.5577 GB, free: 4.375 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.887e-05/0.1453, allocations: 47.83 kB / 0.5578 GB, free: 4.328 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.436e-05/0.1453, allocations: 39.78 kB / 0.5578 GB, free: 4.289 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.823e-05/0.1454, allocations: 12 kB / 0.5578 GB, free: 4.277 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.612e-05/0.1454, allocations: 8 kB / 0.5578 GB, free: 4.27 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.897e-05/0.1454, allocations: 19.92 kB / 0.5579 GB, free: 4.25 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 5.561e-05/0.1455, allocations: 47.72 kB / 0.5579 GB, free: 4.203 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000148/0.1456, allocations: 91.56 kB / 0.558 GB, free: 4.113 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1456, allocations: 0 / 0.558 GB, free: 4.113 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1456, allocations: 4 kB / 0.558 GB, free: 4.109 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.1456, allocations: 3.938 kB / 0.558 GB, free: 4.105 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.0007432/0.1464, allocations: 446.9 kB / 0.5584 GB, free: 3.617 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.1464, allocations: 12.03 kB / 0.5584 GB, free: 3.605 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.349e-05/0.1465, allocations: 34.75 kB / 0.5585 GB, free: 3.562 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.998e-05/0.1465, allocations: 20.84 kB / 0.5585 GB, free: 3.543 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003167/0.1468, allocations: 202.4 kB / 0.5587 GB, free: 3.309 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.929e-06/0.1468, allocations: 8.375 kB / 0.5587 GB, free: 3.301 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.088e-05/0.1468, allocations: 8.359 kB / 0.5587 GB, free: 3.293 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003558/0.1472, allocations: 150.5 kB / 0.5588 GB, free: 3.125 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.1472, allocations: 7.875 kB / 0.5588 GB, free: 3.117 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.1472, allocations: 0 / 0.5588 GB, free: 3.117 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.1472, allocations: 4 kB / 0.5588 GB, free: 3.113 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003469/0.1476, allocations: 103.9 kB / 0.5589 GB, free: 3.012 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000714/0.1483, allocations: 0.5477 MB / 0.5595 GB, free: 2.406 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000395/0.1487, allocations: 134.5 kB / 0.5596 GB, free: 2.266 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001787/0.1489, allocations: 56.78 kB / 0.5597 GB, free: 2.207 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.1489, allocations: 0 / 0.5597 GB, free: 2.207 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.259e-05/0.1489, allocations: 42.56 kB / 0.5597 GB, free: 2.156 MB / 414.1 MB Notification: Performance of pre-optimization done (n=8): time 9.62e-07/0.1489, allocations: 0 / 0.5597 GB, free: 2.156 MB / 414.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006175/0.1495, allocations: 181.6 kB / 0.5599 GB, free: 1.973 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.178e-05/0.1496, allocations: 106.8 kB / 0.56 GB, free: 1.844 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.1498, allocations: 142.1 kB / 0.5601 GB, free: 1.691 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.337e-05/0.1498, allocations: 33.64 kB / 0.5601 GB, free: 1.652 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.34e-05/0.1498, allocations: 104 kB / 0.5602 GB, free: 1.547 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.234e-05/0.1499, allocations: 23.94 kB / 0.5603 GB, free: 1.523 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.908e-05/0.1499, allocations: 25.7 kB / 0.5603 GB, free: 1.492 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.1501, allocations: 322.8 kB / 0.5606 GB, free: 1.168 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000178/0.1502, allocations: 55.89 kB / 0.5607 GB, free: 1.113 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002029/0.1505, allocations: 88.23 kB / 0.5607 GB, free: 1.012 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003319/0.1508, allocations: 114.5 kB / 0.5608 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1508, allocations: 0 / 0.5608 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004108/0.1512, allocations: 157.5 kB / 0.561 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.1512, allocations: 4 kB / 0.561 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.1512, allocations: 400 / 0.561 GB, free: 0.7266 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.1512, allocations: 4 kB / 0.561 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001459/0.1514, allocations: 23.97 kB / 0.561 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.252e-06/0.1514, allocations: 192 / 0.561 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001439/0.1515, allocations: 35.86 kB / 0.5611 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.303e-05/0.1515, allocations: 15.98 kB / 0.5611 GB, free: 0.6484 MB / 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.0001126/0.1517, allocations: 121.8 kB / 0.5612 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.601e-05/0.1517, allocations: 11.89 kB / 0.5612 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.305e-05/0.1517, allocations: 12.72 kB / 0.5612 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.1517, allocations: 4 kB / 0.5612 GB, free: 500 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.1517, allocations: 4 kB / 0.5612 GB, free: 496 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.1518, allocations: 3.938 kB / 0.5612 GB, free: 492 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002389/0.152, allocations: 197.6 kB / 0.5614 GB, free: 244 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.152, allocations: 0 / 0.5614 GB, free: 244 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001109/0.1521, allocations: 27.97 kB / 0.5614 GB, free: 216 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.1521, allocations: 0 / 0.5614 GB, free: 216 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.1521, allocations: 4 kB / 0.5614 GB, free: 212 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.552e-06/0.1521, allocations: 11.97 kB / 0.5615 GB, free: 200 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1521, allocations: 0 / 0.5615 GB, free: 200 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004571/0.1526, allocations: 235.3 kB / 0.5617 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.006e-05/0.1526, allocations: 89.05 kB / 0.5618 GB, free: 15.84 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.05e-05/0.1527, allocations: 3.938 kB / 0.5618 GB, free: 15.84 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001564/0.1528, allocations: 27.97 kB / 0.5618 GB, free: 15.81 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.463e-05/0.1529, allocations: 11.92 kB / 0.5618 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.721e-06/0.1529, allocations: 0 / 0.5618 GB, free: 15.8 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.549e-05/0.153, allocations: 113.3 kB / 0.5619 GB, free: 15.69 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.153, allocations: 0 / 0.5619 GB, free: 15.69 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002468/0.1532, allocations: 20 kB / 0.5619 GB, free: 15.67 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.000756/0.154, allocations: 0.7632 MB / 0.5627 GB, free: 14.88 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0004231/0.1544, allocations: 115.8 kB / 0.5628 GB, free: 14.77 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1544, allocations: 0 / 0.5628 GB, free: 14.77 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001853/0.1546, allocations: 60.02 kB / 0.5629 GB, free: 14.71 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003216/0.1549, allocations: 25.59 kB / 0.5629 GB, free: 14.69 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002346/0.1572, allocations: 1.679 MB / 0.5645 GB, free: 12.92 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003433/0.1576, allocations: 0.6963 MB / 0.5652 GB, free: 12.2 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.037e-05/0.1576, allocations: 8.656 kB / 0.5652 GB, free: 12.19 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.407e-05/0.1577, allocations: 27.44 kB / 0.5652 GB, free: 12.16 MB / 430.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1577, allocations: 0 / 0.5652 GB, free: 12.16 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02432/0.182, allocations: 2.759 MB / 0.5679 GB, free: 9.477 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.267/8.449, allocations: 14.03 kB / 0.5679 GB, free: 9.465 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ZeroThresholds_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ZeroThresholds.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ZeroThresholds.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.423810394015163] Failed to read output from testmodel.py, exit status != 0: 8.518703158944845 8.541625275 8.391325839 Calling exit ...