Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.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.001861/0.001861, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.002038/0.002038, allocations: 211.9 kB / 24.54 MB, free: 4.02 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.5 MB / 258.2 MB, free: 7.992 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.2334/0.2334, allocations: 46.92 MB / 361.6 MB, free: 4.184 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.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimResetIntegrator",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.002398/0.002398, allocations: 75.86 kB / 0.497 GB, free: 7.766 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3522/0.3546, allocations: 66.08 MB / 0.5615 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003485/0.3581, allocations: 1.653 MB / 0.5631 GB, free: 2.637 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001196/0.3593, allocations: 0.6087 MB / 0.5637 GB, free: 2.023 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.717e-05/0.3594, allocations: 3.938 kB / 0.5637 GB, free: 2.02 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001309/0.3595, allocations: 7.875 kB / 0.5637 GB, free: 2.012 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.355e-05/0.3596, allocations: 19.86 kB / 0.5637 GB, free: 1.992 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003927/0.36, allocations: 83.77 kB / 0.5638 GB, free: 1.91 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001974/0.3602, allocations: 107.8 kB / 0.5639 GB, free: 1.805 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.3603, allocations: 31.97 kB / 0.5639 GB, free: 1.773 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.212e-05/0.3604, allocations: 55.77 kB / 0.564 GB, free: 1.719 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.911e-05/0.3605, allocations: 35.84 kB / 0.564 GB, free: 1.684 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.352e-05/0.3605, allocations: 8 kB / 0.564 GB, free: 1.676 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.724e-05/0.3605, allocations: 8 kB / 0.564 GB, free: 1.668 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.558e-05/0.3606, allocations: 23.92 kB / 0.5641 GB, free: 1.645 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.616e-05/0.3606, allocations: 39.73 kB / 0.5641 GB, free: 1.605 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001647/0.3608, allocations: 91.56 kB / 0.5642 GB, free: 1.516 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3608, allocations: 0 / 0.5642 GB, free: 1.516 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3608, allocations: 0 / 0.5642 GB, free: 1.516 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.3608, allocations: 0 / 0.5642 GB, free: 1.516 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006722/0.3615, allocations: 358.7 kB / 0.5645 GB, free: 1.133 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.3615, allocations: 12.03 kB / 0.5646 GB, free: 1.121 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.775e-05/0.3616, allocations: 34.75 kB / 0.5646 GB, free: 1.078 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.9e-05/0.3616, allocations: 16.88 kB / 0.5646 GB, free: 1.062 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003027/0.3619, allocations: 149.5 kB / 0.5647 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.3619, allocations: 8.375 kB / 0.5648 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.329e-05/0.362, allocations: 8.375 kB / 0.5648 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002741/0.3622, allocations: 105.7 kB / 0.5649 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.158e-06/0.3622, allocations: 0 / 0.5649 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.061e-05/0.3623, allocations: 0 / 0.5649 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.3623, allocations: 4 kB / 0.5649 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001628/0.3624, allocations: 59.94 kB / 0.5649 GB, free: 0.707 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006785/0.3631, allocations: 359.6 kB / 0.5653 GB, free: 320 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003393/0.3634, allocations: 106.5 kB / 0.5654 GB, free: 204 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.3636, allocations: 28.92 kB / 0.5654 GB, free: 172 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.402e-05/0.3636, allocations: 4 kB / 0.5654 GB, free: 168 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002538/0.3638, allocations: 103.3 kB / 0.5655 GB, free: 52 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.273e-06/0.3638, allocations: 0 / 0.5655 GB, free: 52 kB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005059/0.3643, allocations: 141.5 kB / 0.5656 GB, free: 15.91 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.34e-05/0.3644, allocations: 59.39 kB / 0.5657 GB, free: 15.84 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001493/0.3645, allocations: 145.8 kB / 0.5658 GB, free: 15.68 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.235e-05/0.3646, allocations: 25.7 kB / 0.5659 GB, free: 15.65 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.308e-05/0.3646, allocations: 108 kB / 0.566 GB, free: 15.54 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.72e-05/0.3647, allocations: 23.94 kB / 0.566 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.02e-05/0.3647, allocations: 29.7 kB / 0.566 GB, free: 15.48 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.3649, allocations: 318.8 kB / 0.5663 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.365, allocations: 35.97 kB / 0.5663 GB, free: 15.13 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001309/0.3651, allocations: 53.62 kB / 0.5664 GB, free: 15.07 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002086/0.3653, allocations: 69.69 kB / 0.5665 GB, free: 15 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.3653, allocations: 4 kB / 0.5665 GB, free: 14.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002844/0.3656, allocations: 129.7 kB / 0.5666 GB, free: 14.86 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.3656, allocations: 10.28 kB / 0.5666 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.3656, allocations: 0 / 0.5666 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.3656, allocations: 3.938 kB / 0.5666 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.3658, allocations: 15.98 kB / 0.5666 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.3658, allocations: 0 / 0.5666 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.136e-05/0.3659, allocations: 19.98 kB / 0.5666 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.3659, allocations: 8 kB / 0.5666 GB, free: 14.8 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,change.u,$PRE.change.u,$whenCondition2) * 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.0001043/0.366, allocations: 113.8 kB / 0.5668 GB, free: 14.68 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.203e-05/0.366, allocations: 15.84 kB / 0.5668 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.223e-05/0.366, allocations: 16.7 kB / 0.5668 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.366, allocations: 0 / 0.5668 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.366, allocations: 0 / 0.5668 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.366, allocations: 0 / 0.5668 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005721/0.3666, allocations: 369.5 kB / 0.5671 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.3666, allocations: 0 / 0.5671 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.075e-05/0.3667, allocations: 11.98 kB / 0.5671 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.3667, allocations: 0 / 0.5671 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.3667, allocations: 4 kB / 0.5672 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.3667, allocations: 0 / 0.5672 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.3667, allocations: 0 / 0.5672 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004641/0.3672, allocations: 251.3 kB / 0.5674 GB, free: 13.96 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.994e-05/0.3672, allocations: 11.89 kB / 0.5674 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.128e-05/0.3672, allocations: 8.094 kB / 0.5674 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001305/0.3673, allocations: 19.92 kB / 0.5674 GB, free: 13.92 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.904e-05/0.3674, allocations: 15.97 kB / 0.5674 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.686e-06/0.3674, allocations: 4 kB / 0.5674 GB, free: 13.9 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.134e-05/0.3675, allocations: 118.2 kB / 0.5676 GB, free: 13.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3675, allocations: 0 / 0.5676 GB, free: 13.79 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002447/0.3677, allocations: 19.94 kB / 0.5676 GB, free: 13.77 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,change.u,booleanPulse.pulseStart) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007865/0.3685, allocations: 0.7753 MB / 0.5683 GB, free: 12.96 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003001/0.3688, allocations: 88.06 kB / 0.5684 GB, free: 12.88 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3688, allocations: 0 / 0.5684 GB, free: 12.88 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000131/0.369, allocations: 40.2 kB / 0.5685 GB, free: 12.84 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003337/0.3693, allocations: 27.98 kB / 0.5685 GB, free: 12.81 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002573/0.3719, allocations: 1.693 MB / 0.5701 GB, free: 11.03 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003617/0.3722, allocations: 0.7001 MB / 0.5708 GB, free: 10.3 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.484e-05/0.3723, allocations: 16.47 kB / 0.5708 GB, free: 10.29 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.603e-05/0.3724, allocations: 27.44 kB / 0.5709 GB, free: 10.26 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3724, allocations: 0 / 0.5709 GB, free: 10.26 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02655/0.3989, allocations: 2.669 MB / 0.5735 GB, free: 7.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.048/8.447, allocations: 4.672 kB / 0.5735 GB, free: 7.656 MB / 414.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000995025 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.61056182300672] Failed to read output from testmodel.py, exit status != 0: ['time', 'integrator.y'] 8.516049365047365 8.543249546 8.177461365 Calling exit ...