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.001929/0.001929, allocations: 117.9 kB / 18.5 MB, free: 4.52 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.002216/0.002216, allocations: 214.5 kB / 21.46 MB, free: 1.566 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.47/1.47, allocations: 230.4 MB / 254.7 MB, free: 15.04 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.2924/0.2924, 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.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.002305/0.002305, allocations: 87.86 kB / 0.4917 GB, free: 7.746 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1335, allocations: 66.04 MB / 0.5562 GB, free: 5.574 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003166/0.1366, allocations: 1.638 MB / 0.5578 GB, free: 3.918 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001214/0.1378, allocations: 0.5977 MB / 0.5583 GB, free: 3.316 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.221e-05/0.1379, allocations: 7.938 kB / 0.5583 GB, free: 3.309 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001313/0.1381, allocations: 11.88 kB / 0.5584 GB, free: 3.297 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.495e-05/0.1381, allocations: 11.86 kB / 0.5584 GB, free: 3.285 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003656/0.1385, allocations: 87.02 kB / 0.5584 GB, free: 3.203 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002176/0.1387, allocations: 115.7 kB / 0.5586 GB, free: 3.09 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001268/0.1388, allocations: 35.95 kB / 0.5586 GB, free: 3.055 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.758e-05/0.1389, allocations: 51.78 kB / 0.5586 GB, free: 3.004 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.481e-05/0.139, allocations: 31.84 kB / 0.5587 GB, free: 2.973 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.309e-05/0.139, allocations: 8 kB / 0.5587 GB, free: 2.965 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.71e-05/0.139, allocations: 8 kB / 0.5587 GB, free: 2.957 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.727e-05/0.1391, allocations: 23.92 kB / 0.5587 GB, free: 2.934 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 6.109e-05/0.1391, allocations: 43.72 kB / 0.5588 GB, free: 2.891 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001729/0.1393, allocations: 91.56 kB / 0.5588 GB, free: 2.801 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.1393, allocations: 0 / 0.5588 GB, free: 2.801 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1393, allocations: 4 kB / 0.5588 GB, free: 2.797 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.1393, allocations: 0 / 0.5588 GB, free: 2.797 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0007189/0.14, allocations: 415 kB / 0.5592 GB, free: 2.344 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.1401, allocations: 8.031 kB / 0.5592 GB, free: 2.336 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.854e-05/0.1401, allocations: 38.75 kB / 0.5593 GB, free: 2.289 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.372e-05/0.1402, allocations: 8.891 kB / 0.5593 GB, free: 2.281 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002887/0.1405, allocations: 217.2 kB / 0.5595 GB, free: 2.031 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.289e-05/0.1405, allocations: 16.38 kB / 0.5595 GB, free: 2.016 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.305e-05/0.1405, allocations: 4.375 kB / 0.5595 GB, free: 2.012 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002899/0.1408, allocations: 109.7 kB / 0.5596 GB, free: 1.898 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.1408, allocations: 0 / 0.5596 GB, free: 1.898 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/0.1408, allocations: 4 kB / 0.5596 GB, free: 1.895 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.349e-06/0.1408, allocations: 0 / 0.5596 GB, free: 1.895 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001711/0.141, allocations: 51.97 kB / 0.5597 GB, free: 1.844 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007053/0.1417, allocations: 388.5 kB / 0.56 GB, free: 1.414 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003509/0.142, allocations: 98.52 kB / 0.5601 GB, free: 1.309 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001163/0.1422, allocations: 32.91 kB / 0.5602 GB, free: 1.273 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.412e-05/0.1422, allocations: 0 / 0.5602 GB, free: 1.273 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00027/0.1424, allocations: 107.3 kB / 0.5603 GB, free: 1.156 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.313e-06/0.1424, allocations: 0 / 0.5603 GB, free: 1.156 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004888/0.1429, allocations: 145.5 kB / 0.5604 GB, free: 1.008 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.445e-05/0.143, allocations: 55.34 kB / 0.5605 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001489/0.1431, allocations: 149.8 kB / 0.5606 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.454e-05/0.1432, allocations: 29.7 kB / 0.5606 GB, free: 0.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.392e-05/0.1432, allocations: 100.1 kB / 0.5607 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.026e-05/0.1433, allocations: 23.84 kB / 0.5608 GB, free: 0.625 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.897e-05/0.1433, allocations: 25.72 kB / 0.5608 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.1435, allocations: 322.8 kB / 0.5611 GB, free: 276 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001306/0.1436, allocations: 35.97 kB / 0.5611 GB, free: 240 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001323/0.1437, allocations: 49.64 kB / 0.5612 GB, free: 184 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002512/0.144, allocations: 77.67 kB / 0.5612 GB, free: 100 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.144, allocations: 0 / 0.5612 GB, free: 100 kB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003234/0.1443, allocations: 117.6 kB / 0.5614 GB, free: 15.97 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.1443, allocations: 11.94 kB / 0.5614 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.1443, allocations: 3.938 kB / 0.5614 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.1443, allocations: 0 / 0.5614 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.1444, allocations: 19.98 kB / 0.5614 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.1445, allocations: 0 / 0.5614 GB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.62e-05/0.1446, allocations: 20.06 kB / 0.5614 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.1446, allocations: 0 / 0.5614 GB, free: 15.92 MB / 430.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,change.u,$PRE.change.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.000107/0.1447, allocations: 127.2 kB / 0.5615 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.534e-05/0.1447, allocations: 15.84 kB / 0.5615 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.075e-05/0.1447, allocations: 13 kB / 0.5616 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.1447, allocations: 4 kB / 0.5616 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.1447, allocations: 0 / 0.5616 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.1447, allocations: 3.938 kB / 0.5616 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005724/0.1453, allocations: 398.4 kB / 0.5619 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.1453, allocations: 0 / 0.5619 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.766e-05/0.1454, allocations: 11.98 kB / 0.562 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.1454, allocations: 0 / 0.562 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.1454, allocations: 0 / 0.562 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.1454, allocations: 4 kB / 0.562 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.1454, allocations: 4 kB / 0.562 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005028/0.1459, allocations: 255.6 kB / 0.5622 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.784e-05/0.146, allocations: 89.05 kB / 0.5623 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.2e-05/0.146, allocations: 4 kB / 0.5623 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001423/0.1462, allocations: 24.03 kB / 0.5623 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.697e-05/0.1462, allocations: 15.98 kB / 0.5623 GB, free: 14.87 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-06/0.1462, allocations: 0 / 0.5623 GB, free: 14.87 MB / 430.1 MB Notification: Performance of sorting global known variables: time 9.436e-05/0.1463, allocations: 113.9 kB / 0.5624 GB, free: 14.76 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1463, allocations: 0 / 0.5624 GB, free: 14.76 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002379/0.1466, allocations: 16 kB / 0.5625 GB, free: 14.74 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,change.u) * 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.000801/0.1474, allocations: 0.7788 MB / 0.5632 GB, free: 13.94 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0003285/0.1477, allocations: 84.02 kB / 0.5633 GB, free: 13.86 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1477, allocations: 3.938 kB / 0.5633 GB, free: 13.85 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001425/0.1478, allocations: 39.97 kB / 0.5633 GB, free: 13.81 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003197/0.1481, allocations: 22.19 kB / 0.5634 GB, free: 13.8 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002827/0.151, allocations: 1.701 MB / 0.565 GB, free: 12 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003435/0.1513, allocations: 0.6963 MB / 0.5657 GB, free: 11.28 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.13e-05/0.1514, allocations: 8.547 kB / 0.5657 GB, free: 11.27 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.613e-05/0.1514, allocations: 35.42 kB / 0.5657 GB, free: 11.24 MB / 430.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1514, allocations: 192 / 0.5657 GB, free: 11.24 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0302/0.1816, allocations: 2.64 MB / 0.5683 GB, free: 8.684 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.028/8.21, allocations: 6.109 kB / 0.5683 GB, free: 8.68 MB / 430.1 MB " [Timeout remaining time 652] (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.299441954120994] Failed to read output from testmodel.py, exit status != 0: ['time', 'integrator.y'] 8.280773495323956 8.307046258 8.163090276 Calling exit ...