Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.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.001525/0.001525, allocations: 114.3 kB / 18.49 MB, free: 4.539 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.001684/0.001684, allocations: 219 kB / 21.46 MB, free: 1.586 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.511/1.511, allocations: 230.6 MB / 254.8 MB, free: 15.08 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.2455/0.2455, allocations: 46.93 MB / 357.8 MB, free: 10.29 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.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003218/0.003218, allocations: 59.91 kB / 0.4916 GB, free: 7.941 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1533/0.1565, allocations: 66 MB / 0.5561 GB, free: 5.816 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003683/0.1602, allocations: 1.464 MB / 0.5575 GB, free: 4.34 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001176/0.1614, allocations: 484.5 kB / 0.5579 GB, free: 3.863 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.709e-05/0.1615, allocations: 4 kB / 0.5579 GB, free: 3.859 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 3.654e-05/0.1615, allocations: 3.938 kB / 0.5579 GB, free: 3.855 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.897e-05/0.1616, allocations: 3.938 kB / 0.558 GB, free: 3.852 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003629/0.162, allocations: 35.89 kB / 0.558 GB, free: 3.816 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001645/0.1621, allocations: 39.8 kB / 0.558 GB, free: 3.777 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001206/0.1622, allocations: 7.984 kB / 0.558 GB, free: 3.77 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001856/0.1624, allocations: 19.92 kB / 0.5581 GB, free: 3.75 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.632e-05/0.1625, allocations: 23.91 kB / 0.5581 GB, free: 3.727 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.625e-05/0.1625, allocations: 0 / 0.5581 GB, free: 3.727 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.828e-05/0.1626, allocations: 12 kB / 0.5581 GB, free: 3.715 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.687e-05/0.1626, allocations: 4 kB / 0.5581 GB, free: 3.711 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.637e-05/0.1626, allocations: 11.94 kB / 0.5581 GB, free: 3.699 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001818/0.1628, allocations: 43.81 kB / 0.5581 GB, free: 3.656 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.1628, allocations: 0 / 0.5581 GB, free: 3.656 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.457e-06/0.1628, allocations: 3.938 kB / 0.5581 GB, free: 3.652 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.646e-05/0.1629, allocations: 0 / 0.5581 GB, free: 3.652 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.0007127/0.1636, allocations: 347.3 kB / 0.5585 GB, free: 3.266 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.828e-05/0.1636, allocations: 12.03 kB / 0.5585 GB, free: 3.254 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.706e-05/0.1637, allocations: 12.12 kB / 0.5585 GB, free: 3.242 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.921e-05/0.1637, allocations: 38.73 kB / 0.5585 GB, free: 3.195 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002217/0.1639, allocations: 8.938 kB / 0.5585 GB, free: 3.188 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003954/0.1643, allocations: 180.2 kB / 0.5587 GB, free: 2.973 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.1643, allocations: 384 / 0.5587 GB, free: 2.973 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.868e-05/0.1644, allocations: 8.375 kB / 0.5587 GB, free: 2.965 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000242/0.1646, allocations: 63.33 kB / 0.5588 GB, free: 2.891 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.1646, allocations: 0 / 0.5588 GB, free: 2.891 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.1646, allocations: 0 / 0.5588 GB, free: 2.891 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.306e-05/0.1646, allocations: 4 kB / 0.5588 GB, free: 2.887 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001133/0.1648, allocations: 23.92 kB / 0.5588 GB, free: 2.863 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000583/0.1653, allocations: 264.8 kB / 0.5591 GB, free: 2.555 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000124/0.1655, allocations: 34.56 kB / 0.5591 GB, free: 2.512 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.977e-05/0.1655, allocations: 12.92 kB / 0.5591 GB, free: 2.496 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.391e-05/0.1655, allocations: 0 / 0.5591 GB, free: 2.496 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.187e-05/0.1656, allocations: 34.56 kB / 0.5591 GB, free: 2.453 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.743e-06/0.1656, allocations: 0 / 0.5591 GB, free: 2.453 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003111/0.1659, allocations: 61.61 kB / 0.5592 GB, free: 2.387 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.823e-05/0.166, allocations: 81.23 kB / 0.5593 GB, free: 2.289 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.1661, allocations: 113.8 kB / 0.5594 GB, free: 2.168 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.492e-05/0.1661, allocations: 33.69 kB / 0.5594 GB, free: 2.129 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.23e-05/0.1662, allocations: 88.08 kB / 0.5595 GB, free: 2.039 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.051e-05/0.1662, allocations: 3.953 kB / 0.5595 GB, free: 2.035 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.385e-05/0.1662, allocations: 13.72 kB / 0.5595 GB, free: 2.016 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001867/0.1664, allocations: 326.8 kB / 0.5598 GB, free: 1.688 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.242e-05/0.1665, allocations: 8 kB / 0.5598 GB, free: 1.68 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.459e-05/0.1665, allocations: 29.7 kB / 0.5599 GB, free: 1.645 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.529e-05/0.1666, allocations: 28.78 kB / 0.5599 GB, free: 1.613 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1666, allocations: 4 kB / 0.5599 GB, free: 1.609 MB / 414.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001456/0.1668, allocations: 53.67 kB / 0.56 GB, free: 1.551 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.1668, allocations: 11.94 kB / 0.56 GB, free: 1.539 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.1668, allocations: 0 / 0.56 GB, free: 1.539 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.1668, allocations: 384 / 0.56 GB, free: 1.539 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.506e-05/0.1669, allocations: 4 kB / 0.56 GB, free: 1.535 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.1669, allocations: 4.031 kB / 0.56 GB, free: 1.531 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.364e-05/0.167, allocations: 11.94 kB / 0.56 GB, free: 1.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.863e-06/0.167, allocations: 3.938 kB / 0.56 GB, free: 1.516 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 0.0001143/0.1671, allocations: 123.9 kB / 0.5601 GB, free: 1.387 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.098e-05/0.1671, allocations: 4 kB / 0.5601 GB, free: 1.383 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.117e-05/0.1671, allocations: 11.52 kB / 0.5601 GB, free: 1.371 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.1671, allocations: 0 / 0.5601 GB, free: 1.371 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.1671, allocations: 144 / 0.5601 GB, free: 1.371 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.1672, allocations: 7.984 kB / 0.5601 GB, free: 1.363 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001987/0.1673, allocations: 169.6 kB / 0.5603 GB, free: 1.148 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.1674, allocations: 0 / 0.5603 GB, free: 1.148 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.237e-05/0.1674, allocations: 4 kB / 0.5603 GB, free: 1.145 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.1674, allocations: 0 / 0.5603 GB, free: 1.145 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.1674, allocations: 4 kB / 0.5603 GB, free: 1.141 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.215e-06/0.1674, allocations: 0 / 0.5603 GB, free: 1.141 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1674, allocations: 0 / 0.5603 GB, free: 1.141 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002079/0.1676, allocations: 159.4 kB / 0.5604 GB, free: 0.9688 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.009e-05/0.1677, allocations: 81.11 kB / 0.5605 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.873e-05/0.1677, allocations: 0 / 0.5605 GB, free: 0.8711 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.499e-05/0.1678, allocations: 7.984 kB / 0.5605 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.733e-05/0.1678, allocations: 7.984 kB / 0.5605 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.559e-06/0.1678, allocations: 3.938 kB / 0.5605 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.858e-05/0.1679, allocations: 91.27 kB / 0.5606 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1679, allocations: 0 / 0.5606 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002288/0.1681, allocations: 16.03 kB / 0.5606 GB, free: 0.7461 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.0006373/0.1688, allocations: 0.6733 MB / 0.5613 GB, free: 48 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001946/0.169, allocations: 31.92 kB / 0.5613 GB, free: 16 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.179e-06/0.169, allocations: 8.031 kB / 0.5613 GB, free: 8 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.493e-05/0.169, allocations: 4 kB / 0.5613 GB, free: 4 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002679/0.1693, allocations: 13.7 kB / 0.5614 GB, free: 15.99 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001682/0.171, allocations: 1.258 MB / 0.5626 GB, free: 14.65 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003683/0.1714, allocations: 0.6845 MB / 0.5633 GB, free: 13.94 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.452e-05/0.1714, allocations: 0 / 0.5633 GB, free: 13.94 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.646e-05/0.1714, allocations: 23.42 kB / 0.5633 GB, free: 13.92 MB / 430.1 MB Notification: Performance of SimCode: time 3e-07/0.1714, allocations: 0 / 0.5633 GB, free: 13.92 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0183/0.1897, allocations: 1.563 MB / 0.5648 GB, free: 12.44 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.4/8.59, allocations: 3.875 kB / 0.5648 GB, free: 12.44 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --stepSize=0.000598325 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.622939923021477] Failed to read output from testmodel.py, exit status != 0: ['time', 'hysteresis.y'] 8.71922208898468 8.742272216 8.57483748 Calling exit ...