Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.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.001298/0.001298, allocations: 120 kB / 18.5 MB, free: 4.52 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.001411/0.001411, allocations: 213.6 kB / 21.46 MB, free: 1.566 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.547/1.547, allocations: 230.4 MB / 254.7 MB, free: 15.02 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.3263/0.3263, allocations: 46.92 MB / 357.7 MB, free: 10.21 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.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Hysteresis",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.002333/0.002333, allocations: 79.86 kB / 0.4917 GB, free: 7.75 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.147/0.1494, allocations: 66.03 MB / 0.5561 GB, free: 5.586 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003105/0.1525, allocations: 1.471 MB / 0.5576 GB, free: 4.098 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009531/0.1534, allocations: 0.4886 MB / 0.5581 GB, free: 3.605 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.807e-05/0.1535, allocations: 0 / 0.5581 GB, free: 3.605 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 2.831e-05/0.1535, allocations: 0 / 0.5581 GB, free: 3.605 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 4.516e-05/0.1536, allocations: 7.875 kB / 0.5581 GB, free: 3.598 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002222/0.1538, allocations: 27.97 kB / 0.5581 GB, free: 3.57 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001115/0.1539, allocations: 35.8 kB / 0.5581 GB, free: 3.535 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.135e-05/0.154, allocations: 11.98 kB / 0.5581 GB, free: 3.523 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001192/0.1541, allocations: 15.98 kB / 0.5581 GB, free: 3.508 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.96e-05/0.1542, allocations: 23.86 kB / 0.5582 GB, free: 3.484 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.282e-05/0.1542, allocations: 4 kB / 0.5582 GB, free: 3.48 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.845e-05/0.1542, allocations: 8 kB / 0.5582 GB, free: 3.473 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.319e-05/0.1542, allocations: 11.97 kB / 0.5582 GB, free: 3.461 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.653e-05/0.1543, allocations: 11.94 kB / 0.5582 GB, free: 3.449 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001201/0.1544, allocations: 43.77 kB / 0.5582 GB, free: 3.406 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.1544, allocations: 0 / 0.5582 GB, free: 3.406 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1544, allocations: 0 / 0.5582 GB, free: 3.406 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.1544, allocations: 3.938 kB / 0.5583 GB, free: 3.402 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004727/0.1549, allocations: 347.3 kB / 0.5586 GB, free: 3.016 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.1549, allocations: 16.03 kB / 0.5586 GB, free: 3 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.495e-05/0.1549, allocations: 30.75 kB / 0.5586 GB, free: 2.961 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001446/0.1551, allocations: 12.92 kB / 0.5586 GB, free: 2.949 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002401/0.1553, allocations: 180.3 kB / 0.5588 GB, free: 2.734 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.874e-06/0.1553, allocations: 384 / 0.5588 GB, free: 2.734 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.16e-05/0.1553, allocations: 4.375 kB / 0.5588 GB, free: 2.73 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001552/0.1555, allocations: 59.52 kB / 0.5589 GB, free: 2.66 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.1555, allocations: 3.938 kB / 0.5589 GB, free: 2.656 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.097e-06/0.1555, allocations: 4 kB / 0.5589 GB, free: 2.652 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.1555, allocations: 0 / 0.5589 GB, free: 2.652 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.464e-05/0.1556, allocations: 23.97 kB / 0.5589 GB, free: 2.629 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003786/0.156, allocations: 268.8 kB / 0.5592 GB, free: 2.316 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.955e-05/0.1561, allocations: 26.58 kB / 0.5592 GB, free: 2.281 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.37e-05/0.1561, allocations: 24.91 kB / 0.5592 GB, free: 2.254 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.487e-05/0.1562, allocations: 0 / 0.5592 GB, free: 2.254 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.1562, allocations: 34.5 kB / 0.5592 GB, free: 2.211 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.1562, allocations: 0 / 0.5592 GB, free: 2.211 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002408/0.1564, allocations: 65.61 kB / 0.5593 GB, free: 2.141 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.757e-05/0.1565, allocations: 81.11 kB / 0.5594 GB, free: 2.043 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.177e-05/0.1566, allocations: 110 kB / 0.5595 GB, free: 1.926 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.221e-05/0.1566, allocations: 29.7 kB / 0.5595 GB, free: 1.891 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.021e-05/0.1567, allocations: 88.08 kB / 0.5596 GB, free: 1.801 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.897e-05/0.1567, allocations: 7.938 kB / 0.5596 GB, free: 1.793 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.169e-05/0.1567, allocations: 17.72 kB / 0.5596 GB, free: 1.77 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.1569, allocations: 314.8 kB / 0.5599 GB, free: 1.453 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.533e-05/0.1569, allocations: 19.92 kB / 0.5599 GB, free: 1.434 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.886e-05/0.157, allocations: 29.7 kB / 0.56 GB, free: 1.398 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.645e-05/0.1571, allocations: 24.84 kB / 0.56 GB, free: 1.371 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.1571, allocations: 0 / 0.56 GB, free: 1.371 MB / 414.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001453/0.1572, allocations: 57.69 kB / 0.56 GB, free: 1.309 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.1572, allocations: 4 kB / 0.5601 GB, free: 1.305 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.1572, allocations: 0 / 0.5601 GB, free: 1.305 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.1573, allocations: 7.938 kB / 0.5601 GB, free: 1.297 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.502e-05/0.1573, allocations: 7.984 kB / 0.5601 GB, free: 1.289 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.24e-05/0.1573, allocations: 7.938 kB / 0.5601 GB, free: 1.281 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.116e-05/0.1574, allocations: 15.97 kB / 0.5601 GB, free: 1.266 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.789e-05/0.1574, allocations: 0 / 0.5601 GB, free: 1.266 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (hysteresis.y,$PRE.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 9.449e-05/0.1575, allocations: 117.8 kB / 0.5602 GB, free: 1.141 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.71e-05/0.1575, allocations: 0 / 0.5602 GB, free: 1.141 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.457e-05/0.1576, allocations: 7.531 kB / 0.5602 GB, free: 1.133 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1576, allocations: 0 / 0.5602 GB, free: 1.133 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.1576, allocations: 0 / 0.5602 GB, free: 1.133 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.1576, allocations: 0 / 0.5602 GB, free: 1.133 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001903/0.1578, allocations: 173.6 kB / 0.5604 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.1578, allocations: 0 / 0.5604 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.127e-05/0.1578, allocations: 3.984 kB / 0.5604 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.1578, allocations: 4 kB / 0.5604 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.753e-06/0.1578, allocations: 0 / 0.5604 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.1578, allocations: 0 / 0.5604 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1578, allocations: 384 / 0.5604 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001923/0.158, allocations: 159.4 kB / 0.5605 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.837e-05/0.1581, allocations: 81.11 kB / 0.5606 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.596e-05/0.1581, allocations: 0 / 0.5606 GB, free: 0.6367 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.847e-05/0.1582, allocations: 15.92 kB / 0.5606 GB, free: 0.6211 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.677e-05/0.1582, allocations: 4 kB / 0.5606 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.372e-06/0.1582, allocations: 3.984 kB / 0.5606 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.495e-05/0.1583, allocations: 87.28 kB / 0.5607 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1583, allocations: 0 / 0.5607 GB, free: 0.5273 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002177/0.1585, allocations: 4 kB / 0.5607 GB, free: 0.5234 MB / 414.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: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0005331/0.159, allocations: 0.6851 MB / 0.5614 GB, free: 15.81 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001506/0.1592, allocations: 28.06 kB / 0.5614 GB, free: 15.79 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1592, allocations: 0 / 0.5614 GB, free: 15.79 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 5.183e-05/0.1592, allocations: 20.02 kB / 0.5614 GB, free: 15.77 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002065/0.1594, allocations: 5.719 kB / 0.5614 GB, free: 15.76 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001368/0.1608, allocations: 1.266 MB / 0.5627 GB, free: 14.41 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003262/0.1611, allocations: 0.6768 MB / 0.5633 GB, free: 13.71 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.216e-05/0.1612, allocations: 4 kB / 0.5633 GB, free: 13.71 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.395e-05/0.1612, allocations: 11.44 kB / 0.5634 GB, free: 13.7 MB / 430.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1612, allocations: 0 / 0.5634 GB, free: 13.7 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02353/0.1847, allocations: 1.551 MB / 0.5649 GB, free: 12.21 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.025/8.21, allocations: 5.109 kB / 0.5649 GB, free: 12.21 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000598325 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.4726616833359] Failed to read output from testmodel.py, exit status != 0: ['time', 'hysteresis.y'] 8.27600226085633 8.298900603 8.139886013 Calling exit ...