Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.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.001628/0.001628, allocations: 109 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.001456/0.001456, allocations: 213.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.503/1.503, allocations: 230.5 MB / 258.2 MB, free: 8.008 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.2386/0.2386, allocations: 46.93 MB / 361.6 MB, free: 4.195 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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_SelfResettingIntegrator",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.002367/0.002367, allocations: 83.84 kB / 0.497 GB, free: 7.789 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3728/0.3752, allocations: 66.09 MB / 0.5615 GB, free: 4.312 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002055/0.3772, allocations: 0.8125 MB / 0.5623 GB, free: 3.504 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002/0.3774, allocations: 51.86 kB / 0.5623 GB, free: 3.453 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.01e-05/0.3775, allocations: 3.938 kB / 0.5623 GB, free: 3.449 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001102/0.3776, allocations: 7.938 kB / 0.5624 GB, free: 3.441 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.972e-05/0.3776, allocations: 3.938 kB / 0.5624 GB, free: 3.438 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001463/0.3778, allocations: 19.92 kB / 0.5624 GB, free: 3.418 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001297/0.3779, allocations: 43.86 kB / 0.5624 GB, free: 3.375 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.378, allocations: 13.95 kB / 0.5624 GB, free: 3.363 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.323e-05/0.378, allocations: 11.94 kB / 0.5624 GB, free: 3.352 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.043e-05/0.3781, allocations: 19.92 kB / 0.5625 GB, free: 3.332 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.877e-05/0.3781, allocations: 0 / 0.5625 GB, free: 3.332 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.398e-06/0.3781, allocations: 4 kB / 0.5625 GB, free: 3.328 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.661e-05/0.3781, allocations: 15.92 kB / 0.5625 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.935e-05/0.3782, allocations: 15.92 kB / 0.5625 GB, free: 3.297 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001186/0.3783, allocations: 35.78 kB / 0.5625 GB, free: 3.262 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.3783, allocations: 0 / 0.5625 GB, free: 3.262 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3783, allocations: 0 / 0.5625 GB, free: 3.262 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.3783, allocations: 0 / 0.5625 GB, free: 3.262 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005111/0.3788, allocations: 279.1 kB / 0.5628 GB, free: 2.953 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.3789, allocations: 12.03 kB / 0.5628 GB, free: 2.941 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.898e-05/0.3789, allocations: 42.73 kB / 0.5629 GB, free: 2.891 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.047e-05/0.3789, allocations: 4.891 kB / 0.5629 GB, free: 2.887 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002573/0.3792, allocations: 122.5 kB / 0.563 GB, free: 2.742 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.797e-05/0.3792, allocations: 8.375 kB / 0.563 GB, free: 2.734 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.189e-05/0.3792, allocations: 384 / 0.563 GB, free: 2.734 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001171/0.3793, allocations: 54.23 kB / 0.563 GB, free: 2.676 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.3794, allocations: 3.938 kB / 0.563 GB, free: 2.672 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.3794, allocations: 0 / 0.563 GB, free: 2.672 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.3794, allocations: 8 kB / 0.563 GB, free: 2.664 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.314e-05/0.3794, allocations: 15.98 kB / 0.5631 GB, free: 2.648 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006333/0.3801, allocations: 259.8 kB / 0.5633 GB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.836e-05/0.3801, allocations: 22.58 kB / 0.5633 GB, free: 2.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.704e-05/0.3802, allocations: 8.922 kB / 0.5633 GB, free: 2.309 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.047e-05/0.3802, allocations: 3.984 kB / 0.5633 GB, free: 2.305 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001118/0.3803, allocations: 67.3 kB / 0.5634 GB, free: 2.227 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.262e-06/0.3803, allocations: 0 / 0.5634 GB, free: 2.227 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001762/0.3805, allocations: 45.69 kB / 0.5634 GB, free: 2.176 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.122e-05/0.3806, allocations: 51.41 kB / 0.5635 GB, free: 2.113 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001547/0.3807, allocations: 129.7 kB / 0.5636 GB, free: 1.977 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.249e-05/0.3807, allocations: 25.7 kB / 0.5636 GB, free: 1.945 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.927e-05/0.3808, allocations: 88.17 kB / 0.5637 GB, free: 1.855 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.289e-05/0.3809, allocations: 19.94 kB / 0.5637 GB, free: 1.836 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.784e-05/0.3809, allocations: 17.66 kB / 0.5638 GB, free: 1.812 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001846/0.3811, allocations: 322.8 kB / 0.5641 GB, free: 1.488 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.617e-05/0.3811, allocations: 4 kB / 0.5641 GB, free: 1.484 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.331e-05/0.3812, allocations: 21.7 kB / 0.5641 GB, free: 1.457 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.079e-05/0.3812, allocations: 21.72 kB / 0.5641 GB, free: 1.43 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.3812, allocations: 4 kB / 0.5641 GB, free: 1.426 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001292/0.3814, allocations: 57.62 kB / 0.5642 GB, free: 1.363 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.3814, allocations: 6.344 kB / 0.5642 GB, free: 1.359 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.3814, allocations: 4 kB / 0.5642 GB, free: 1.355 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.3814, allocations: 0 / 0.5642 GB, free: 1.355 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.116e-05/0.3814, allocations: 4 kB / 0.5642 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.3814, allocations: 0 / 0.5642 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.358e-05/0.3815, allocations: 7.891 kB / 0.5642 GB, free: 1.344 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.673e-06/0.3815, allocations: 4 kB / 0.5642 GB, free: 1.34 MB / 398.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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.0001053/0.3816, allocations: 114.8 kB / 0.5643 GB, free: 1.219 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.632e-05/0.3816, allocations: 4 kB / 0.5643 GB, free: 1.215 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.976e-05/0.3816, allocations: 7.984 kB / 0.5643 GB, free: 1.199 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.3817, allocations: 3.938 kB / 0.5643 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.3817, allocations: 4 kB / 0.5643 GB, free: 1.191 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.3817, allocations: 3.938 kB / 0.5643 GB, free: 1.188 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004068/0.3821, allocations: 265.7 kB / 0.5646 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3821, allocations: 0 / 0.5646 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.523e-05/0.3821, allocations: 7.984 kB / 0.5646 GB, free: 0.8711 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.3821, allocations: 4 kB / 0.5646 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.3821, allocations: 3.938 kB / 0.5646 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.3821, allocations: 0 / 0.5646 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.3821, allocations: 0 / 0.5646 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002067/0.3823, allocations: 151.9 kB / 0.5647 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.702e-05/0.3823, allocations: 7.984 kB / 0.5648 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.846e-05/0.3824, allocations: 3.938 kB / 0.5648 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.3825, allocations: 7.984 kB / 0.5648 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.435e-05/0.3825, allocations: 8 kB / 0.5648 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.3825, allocations: 4 kB / 0.5648 GB, free: 0.668 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.883e-05/0.3826, allocations: 95.58 kB / 0.5649 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3826, allocations: 0 / 0.5649 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004137/0.383, allocations: 15.94 kB / 0.5649 GB, free: 0.5586 MB / 398.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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0005919/0.3836, allocations: 0.6774 MB / 0.5655 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00012/0.3837, allocations: 19.92 kB / 0.5656 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.3837, allocations: 4 kB / 0.5656 GB, free: 15.83 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.854e-05/0.3837, allocations: 11.94 kB / 0.5656 GB, free: 15.82 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004128/0.3842, allocations: 7.984 kB / 0.5656 GB, free: 15.81 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001706/0.3859, allocations: 1.282 MB / 0.5668 GB, free: 14.45 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004308/0.3863, allocations: 0.6846 MB / 0.5675 GB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.191e-05/0.3863, allocations: 8 kB / 0.5675 GB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.653e-05/0.3864, allocations: 15.44 kB / 0.5675 GB, free: 13.71 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3864, allocations: 0 / 0.5675 GB, free: 13.71 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02881/0.4152, allocations: 1.556 MB / 0.569 GB, free: 12.22 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.047/8.462, allocations: 11.75 kB / 0.5691 GB, free: 12.21 MB / 414.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000998004 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.477396309375763] Failed to read output from testmodel.py, exit status != 0: ['time', 'integrator.y'] 8.530701687093824 8.547317465 8.165357849 Calling exit ...