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.00117/0.00117, allocations: 105 kB / 19.74 MB, free: 2.453 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.001245/0.001245, allocations: 217.9 kB / 22.92 MB, free: 5.195 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.315/1.315, allocations: 230.2 MB / 256.1 MB, free: 8.582 MB / 206.1 MB " [Timeout remaining time 179] 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.2054/0.2054, allocations: 46.89 MB / 359.3 MB, free: 4.957 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.002162/0.002162, allocations: 91.86 kB / 0.494 GB, free: 9.109 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2578, allocations: 65.98 MB / 0.5584 GB, free: 5.211 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001887/0.2597, allocations: 0.8125 MB / 0.5592 GB, free: 4.398 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001795/0.2599, allocations: 55.8 kB / 0.5592 GB, free: 4.344 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.898e-05/0.2599, allocations: 0 / 0.5592 GB, free: 4.344 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.742e-05/0.26, allocations: 7.875 kB / 0.5593 GB, free: 4.336 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.489e-05/0.26, allocations: 7.938 kB / 0.5593 GB, free: 4.328 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001156/0.2602, allocations: 23.92 kB / 0.5593 GB, free: 4.305 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 9.4e-05/0.2602, allocations: 35.91 kB / 0.5593 GB, free: 4.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.531e-05/0.2603, allocations: 9.828 kB / 0.5593 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.793e-05/0.2604, allocations: 19.91 kB / 0.5593 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.727e-05/0.2604, allocations: 11.94 kB / 0.5594 GB, free: 4.23 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.414e-05/0.2604, allocations: 4 kB / 0.5594 GB, free: 4.227 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.137e-06/0.2604, allocations: 8 kB / 0.5594 GB, free: 4.219 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.306e-05/0.2604, allocations: 7.984 kB / 0.5594 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.614e-05/0.2605, allocations: 15.88 kB / 0.5594 GB, free: 4.195 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 9.304e-05/0.2606, allocations: 47.69 kB / 0.5594 GB, free: 4.148 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.2606, allocations: 0 / 0.5594 GB, free: 4.148 MB / 398.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.2606, allocations: 0 / 0.5594 GB, free: 4.148 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.998e-06/0.2606, allocations: 0 / 0.5594 GB, free: 4.148 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.000394/0.261, allocations: 349.8 kB / 0.5598 GB, free: 3.758 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.878e-05/0.261, allocations: 8.031 kB / 0.5598 GB, free: 3.75 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.095e-05/0.261, allocations: 38.73 kB / 0.5598 GB, free: 3.703 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.968e-05/0.2611, allocations: 4.938 kB / 0.5598 GB, free: 3.699 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001954/0.2613, allocations: 180.3 kB / 0.56 GB, free: 3.484 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.859e-06/0.2613, allocations: 384 / 0.56 GB, free: 3.484 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.92e-05/0.2613, allocations: 4.375 kB / 0.56 GB, free: 3.48 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.71e-05/0.2614, allocations: 54.19 kB / 0.56 GB, free: 3.422 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.2614, allocations: 3.938 kB / 0.5601 GB, free: 3.418 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.2614, allocations: 4 kB / 0.5601 GB, free: 3.414 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.2614, allocations: 0 / 0.5601 GB, free: 3.414 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.913e-05/0.2614, allocations: 15.98 kB / 0.5601 GB, free: 3.398 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00043/0.2619, allocations: 300.6 kB / 0.5604 GB, free: 3.055 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.291e-05/0.2619, allocations: 22.58 kB / 0.5604 GB, free: 3.023 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.97e-05/0.2619, allocations: 8.922 kB / 0.5604 GB, free: 3.012 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.809e-06/0.2619, allocations: 0 / 0.5604 GB, free: 3.012 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.508e-05/0.262, allocations: 51.41 kB / 0.5604 GB, free: 2.949 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.262, allocations: 0 / 0.5604 GB, free: 2.949 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001269/0.2621, allocations: 61.58 kB / 0.5605 GB, free: 2.883 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.28e-05/0.2622, allocations: 51.41 kB / 0.5605 GB, free: 2.82 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.505e-05/0.2623, allocations: 117.8 kB / 0.5607 GB, free: 2.695 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.2623, allocations: 25.7 kB / 0.5607 GB, free: 2.664 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.925e-05/0.2623, allocations: 96.08 kB / 0.5608 GB, free: 2.566 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.676e-05/0.2624, allocations: 7.891 kB / 0.5608 GB, free: 2.559 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.322e-05/0.2624, allocations: 21.72 kB / 0.5608 GB, free: 2.531 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.2625, allocations: 322.8 kB / 0.5611 GB, free: 2.207 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.743e-05/0.2625, allocations: 8 kB / 0.5611 GB, free: 2.199 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.386e-05/0.2626, allocations: 17.72 kB / 0.5611 GB, free: 2.176 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.042e-05/0.2626, allocations: 29.64 kB / 0.5612 GB, free: 2.141 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.2626, allocations: 0 / 0.5612 GB, free: 2.141 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.406e-05/0.2627, allocations: 49.64 kB / 0.5612 GB, free: 2.086 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.002e-05/0.2627, allocations: 10.22 kB / 0.5612 GB, free: 2.078 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/0.2627, allocations: 4 kB / 0.5612 GB, free: 2.074 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.28e-05/0.2627, allocations: 8.312 kB / 0.5612 GB, free: 2.066 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.451e-05/0.2627, allocations: 0 / 0.5612 GB, free: 2.066 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.2627, allocations: 7.984 kB / 0.5612 GB, free: 2.059 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.927e-05/0.2628, allocations: 11.89 kB / 0.5612 GB, free: 2.047 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.046e-06/0.2628, allocations: 0 / 0.5612 GB, free: 2.047 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 7.127e-05/0.2628, allocations: 109.8 kB / 0.5614 GB, free: 1.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.347e-05/0.2628, allocations: 7.984 kB / 0.5614 GB, free: 1.922 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.22e-05/0.2629, allocations: 11.91 kB / 0.5614 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.2629, allocations: 3.984 kB / 0.5614 GB, free: 1.902 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.2629, allocations: 0 / 0.5614 GB, free: 1.902 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.2629, allocations: 3.938 kB / 0.5614 GB, free: 1.898 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002823/0.2632, allocations: 298.5 kB / 0.5617 GB, free: 1.551 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.2632, allocations: 0 / 0.5617 GB, free: 1.551 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.867e-05/0.2632, allocations: 4 kB / 0.5617 GB, free: 1.547 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/0.2632, allocations: 3.984 kB / 0.5617 GB, free: 1.543 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.383e-06/0.2632, allocations: 3.938 kB / 0.5617 GB, free: 1.539 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.2632, allocations: 4 kB / 0.5617 GB, free: 1.535 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.2632, allocations: 0 / 0.5617 GB, free: 1.535 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001284/0.2633, allocations: 147.5 kB / 0.5618 GB, free: 1.375 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.29e-05/0.2634, allocations: 85.09 kB / 0.5619 GB, free: 1.273 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.203e-05/0.2634, allocations: 3.938 kB / 0.5619 GB, free: 1.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.32e-05/0.2635, allocations: 4.375 kB / 0.5619 GB, free: 1.266 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.334e-05/0.2635, allocations: 3.984 kB / 0.5619 GB, free: 1.262 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.286e-06/0.2635, allocations: 4 kB / 0.5619 GB, free: 1.258 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.467e-05/0.2635, allocations: 99.27 kB / 0.562 GB, free: 1.16 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2635, allocations: 0 / 0.562 GB, free: 1.16 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002009/0.2637, allocations: 11.88 kB / 0.562 GB, free: 1.148 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.0003799/0.2641, allocations: 0.6774 MB / 0.5627 GB, free: 456 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.135e-05/0.2642, allocations: 23.92 kB / 0.5627 GB, free: 432 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.2642, allocations: 4.062 kB / 0.5627 GB, free: 428 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.09e-05/0.2642, allocations: 8 kB / 0.5627 GB, free: 420 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002258/0.2644, allocations: 11.98 kB / 0.5627 GB, free: 408 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001087/0.2655, allocations: 1.285 MB / 0.564 GB, free: 15.03 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002905/0.2658, allocations: 0.6912 MB / 0.5647 GB, free: 14.32 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.521e-05/0.2658, allocations: 0 / 0.5647 GB, free: 14.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.18e-05/0.2659, allocations: 15.44 kB / 0.5647 GB, free: 14.3 MB / 414.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2659, allocations: 4 kB / 0.5647 GB, free: 14.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02257/0.2884, allocations: 1.53 MB / 0.5662 GB, free: 12.83 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.982/7.27, allocations: 7.766 kB / 0.5662 GB, free: 12.83 MB / 414.1 MB " [Timeout remaining time 653] (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: 9.793532669005799]