Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.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.001246/0.001246, allocations: 121.2 kB / 18.5 MB, free: 4.578 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.001364/0.001364, allocations: 206.6 kB / 21.45 MB, free: 1.629 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.486/1.486, allocations: 230.4 MB / 254.7 MB, free: 15.19 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.2358/0.2358, allocations: 46.93 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.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ResetHoldIntegrator",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.002307/0.002307, allocations: 75.88 kB / 0.4916 GB, free: 7.75 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1284, allocations: 66.05 MB / 0.5561 GB, free: 5.574 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002933/0.1314, allocations: 1.624 MB / 0.5577 GB, free: 3.934 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.000965/0.1323, allocations: 0.5276 MB / 0.5583 GB, free: 3.402 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.447e-05/0.1324, allocations: 3.938 kB / 0.5583 GB, free: 3.398 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001061/0.1325, allocations: 7.875 kB / 0.5583 GB, free: 3.391 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 4.658e-05/0.1326, allocations: 11.88 kB / 0.5583 GB, free: 3.379 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001675/0.1327, allocations: 31.89 kB / 0.5583 GB, free: 3.348 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001371/0.1329, allocations: 75.78 kB / 0.5584 GB, free: 3.273 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001126/0.133, allocations: 32.2 kB / 0.5584 GB, free: 3.238 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.057e-05/0.133, allocations: 27.92 kB / 0.5584 GB, free: 3.211 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.796e-05/0.1331, allocations: 31.78 kB / 0.5585 GB, free: 3.18 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.27e-05/0.1331, allocations: 8 kB / 0.5585 GB, free: 3.172 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.19e-05/0.1331, allocations: 8 kB / 0.5585 GB, free: 3.164 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.854e-05/0.1332, allocations: 19.92 kB / 0.5585 GB, free: 3.145 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 4.9e-05/0.1332, allocations: 43.72 kB / 0.5585 GB, free: 3.102 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001314/0.1334, allocations: 71.66 kB / 0.5586 GB, free: 3.031 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.125e-06/0.1334, allocations: 0 / 0.5586 GB, free: 3.031 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1334, allocations: 0 / 0.5586 GB, free: 3.031 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.1334, allocations: 0 / 0.5586 GB, free: 3.031 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005615/0.1339, allocations: 391.1 kB / 0.559 GB, free: 2.602 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.134, allocations: 12.03 kB / 0.559 GB, free: 2.59 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.966e-05/0.134, allocations: 42.73 kB / 0.559 GB, free: 2.539 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.279e-05/0.134, allocations: 12.89 kB / 0.559 GB, free: 2.527 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002534/0.1343, allocations: 196.1 kB / 0.5592 GB, free: 2.297 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.089e-05/0.1343, allocations: 4.375 kB / 0.5592 GB, free: 2.293 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.344e-05/0.1343, allocations: 8.375 kB / 0.5592 GB, free: 2.285 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001459/0.1345, allocations: 77.8 kB / 0.5593 GB, free: 2.203 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.1345, allocations: 0 / 0.5593 GB, free: 2.203 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.388e-06/0.1345, allocations: 3.938 kB / 0.5593 GB, free: 2.199 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.659e-06/0.1345, allocations: 7.984 kB / 0.5593 GB, free: 2.191 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.951e-05/0.1346, allocations: 39.97 kB / 0.5594 GB, free: 2.152 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005705/0.1352, allocations: 352.5 kB / 0.5597 GB, free: 1.758 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000114/0.1353, allocations: 50.5 kB / 0.5598 GB, free: 1.699 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.465e-05/0.1353, allocations: 16.89 kB / 0.5598 GB, free: 1.68 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.251e-05/0.1353, allocations: 4 kB / 0.5598 GB, free: 1.676 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001394/0.1355, allocations: 71.42 kB / 0.5598 GB, free: 1.594 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.223e-06/0.1355, allocations: 0 / 0.5598 GB, free: 1.594 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002176/0.1357, allocations: 93.5 kB / 0.5599 GB, free: 1.496 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.137e-05/0.1357, allocations: 51.41 kB / 0.56 GB, free: 1.434 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001512/0.1359, allocations: 135.7 kB / 0.5601 GB, free: 1.293 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.634e-05/0.1359, allocations: 33.7 kB / 0.5601 GB, free: 1.254 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.139e-05/0.136, allocations: 108.1 kB / 0.5602 GB, free: 1.145 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.402e-05/0.136, allocations: 15.98 kB / 0.5603 GB, free: 1.129 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.683e-05/0.136, allocations: 25.7 kB / 0.5603 GB, free: 1.098 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.1362, allocations: 326.8 kB / 0.5606 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.97e-05/0.1362, allocations: 12 kB / 0.5606 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.928e-05/0.1363, allocations: 38.56 kB / 0.5606 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.045e-05/0.1364, allocations: 54.52 kB / 0.5607 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.1364, allocations: 0 / 0.5607 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001417/0.1365, allocations: 89.53 kB / 0.5608 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.1365, allocations: 7.984 kB / 0.5608 GB, free: 0.5469 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.363e-06/0.1366, allocations: 7.938 kB / 0.5608 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.133e-05/0.1366, allocations: 0 / 0.5608 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.368e-05/0.1366, allocations: 8 kB / 0.5608 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.1366, allocations: 0 / 0.5608 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.655e-05/0.1367, allocations: 15.98 kB / 0.5608 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.1367, allocations: 4 kB / 0.5608 GB, free: 0.5117 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,fallingEdge.not_u,$PRE.fallingEdge.not_u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$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.0001034/0.1368, allocations: 117.8 kB / 0.5609 GB, free: 396 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.64e-05/0.1368, allocations: 7.953 kB / 0.5609 GB, free: 388 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.507e-05/0.1369, allocations: 16.66 kB / 0.561 GB, free: 368 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.1369, allocations: 0 / 0.561 GB, free: 368 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.1369, allocations: 0 / 0.561 GB, free: 368 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.1369, allocations: 0 / 0.561 GB, free: 368 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000393/0.1373, allocations: 354.4 kB / 0.5613 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.1373, allocations: 4.188 kB / 0.5613 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.957e-05/0.1373, allocations: 7.984 kB / 0.5613 GB, free: 15.95 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.1373, allocations: 3.938 kB / 0.5613 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.155e-06/0.1373, allocations: 0 / 0.5613 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1373, allocations: 0 / 0.5613 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1373, allocations: 0 / 0.5613 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002333/0.1376, allocations: 195.4 kB / 0.5615 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.853e-05/0.1376, allocations: 81.06 kB / 0.5616 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.979e-05/0.1376, allocations: 8.094 kB / 0.5616 GB, free: 15.63 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.291e-05/0.1377, allocations: 15.92 kB / 0.5616 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.62e-05/0.1378, allocations: 3.984 kB / 0.5616 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.174e-06/0.1378, allocations: 8 kB / 0.5616 GB, free: 15.6 MB / 430.1 MB Notification: Performance of sorting global known variables: time 8.124e-05/0.1379, allocations: 105.6 kB / 0.5617 GB, free: 15.5 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1379, allocations: 3.938 kB / 0.5617 GB, free: 15.5 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002395/0.1381, allocations: 19.94 kB / 0.5617 GB, free: 15.48 MB / 430.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,booleanPulse.pulseStart,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_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.0005413/0.1386, allocations: 0.7208 MB / 0.5624 GB, free: 14.73 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001416/0.1388, allocations: 51.98 kB / 0.5625 GB, free: 14.68 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.634e-06/0.1388, allocations: 0 / 0.5625 GB, free: 14.68 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 5.382e-05/0.1388, allocations: 23.92 kB / 0.5625 GB, free: 14.66 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003078/0.1391, allocations: 24.19 kB / 0.5625 GB, free: 14.64 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001653/0.1408, allocations: 1.523 MB / 0.564 GB, free: 13.02 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003221/0.1411, allocations: 0.6963 MB / 0.5647 GB, free: 12.3 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.57e-05/0.1412, allocations: 12.38 kB / 0.5647 GB, free: 12.29 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.76e-05/0.1412, allocations: 27.42 kB / 0.5647 GB, free: 12.26 MB / 430.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1412, allocations: 4 kB / 0.5647 GB, free: 12.26 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02491/0.1661, allocations: 2.218 MB / 0.5669 GB, free: 10.12 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.128/8.294, allocations: 15.03 kB / 0.5669 GB, free: 10.11 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000997805 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.419050408992916] Failed to read output from testmodel.py, exit status != 0: ['time', 'integrator.y'] 8.363201939035207 8.384287674 8.248126148999999 Calling exit ...