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.001731/0.001731, allocations: 117.8 kB / 18.5 MB, free: 4.434 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.001367/0.001367, allocations: 216.9 kB / 21.47 MB, free: 1.473 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.487/1.487, allocations: 230.2 MB / 254.5 MB, free: 15.37 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.2337/0.2337, allocations: 46.88 MB / 357.4 MB, free: 10.5 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.002293/0.002293, allocations: 79.86 kB / 0.4912 GB, free: 8.508 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1268, allocations: 65.98 MB / 0.5556 GB, free: 6.402 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002916/0.1297, allocations: 1.644 MB / 0.5573 GB, free: 4.742 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001091/0.1308, allocations: 0.5977 MB / 0.5578 GB, free: 4.141 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.209e-05/0.1309, allocations: 0 / 0.5578 GB, free: 4.141 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001168/0.131, allocations: 11.86 kB / 0.5578 GB, free: 4.129 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.609e-05/0.1311, allocations: 15.88 kB / 0.5579 GB, free: 4.113 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003351/0.1314, allocations: 91.75 kB / 0.5579 GB, free: 4.023 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001762/0.1316, allocations: 111.7 kB / 0.5581 GB, free: 3.914 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.1317, allocations: 31.95 kB / 0.5581 GB, free: 3.883 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.907e-05/0.1318, allocations: 47.84 kB / 0.5581 GB, free: 3.836 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.284e-05/0.1319, allocations: 31.84 kB / 0.5582 GB, free: 3.805 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.341e-05/0.1319, allocations: 8 kB / 0.5582 GB, free: 3.797 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.442e-05/0.1319, allocations: 8 kB / 0.5582 GB, free: 3.789 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.26e-05/0.1319, allocations: 27.91 kB / 0.5582 GB, free: 3.762 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 5.266e-05/0.132, allocations: 39.73 kB / 0.5582 GB, free: 3.723 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001542/0.1322, allocations: 91.56 kB / 0.5583 GB, free: 3.633 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1322, allocations: 4 kB / 0.5583 GB, free: 3.629 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1322, allocations: 4 kB / 0.5583 GB, free: 3.625 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.1322, allocations: 0 / 0.5583 GB, free: 3.625 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.0006985/0.1329, allocations: 415 kB / 0.5587 GB, free: 3.172 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.1329, allocations: 8.031 kB / 0.5587 GB, free: 3.164 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.008e-05/0.133, allocations: 38.75 kB / 0.5588 GB, free: 3.117 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.576e-05/0.133, allocations: 12.88 kB / 0.5588 GB, free: 3.105 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002812/0.1333, allocations: 208.2 kB / 0.559 GB, free: 2.863 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.184e-05/0.1333, allocations: 8.312 kB / 0.559 GB, free: 2.855 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.444e-05/0.1333, allocations: 8.375 kB / 0.559 GB, free: 2.848 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002925/0.1336, allocations: 107.4 kB / 0.5591 GB, free: 2.738 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.769e-06/0.1336, allocations: 0 / 0.5591 GB, free: 2.738 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.323e-05/0.1336, allocations: 7.922 kB / 0.5591 GB, free: 2.73 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.1336, allocations: 4 kB / 0.5591 GB, free: 2.727 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000169/0.1338, allocations: 55.95 kB / 0.5592 GB, free: 2.672 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007205/0.1345, allocations: 388.6 kB / 0.5595 GB, free: 2.242 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003552/0.1349, allocations: 106.5 kB / 0.5596 GB, free: 2.129 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001165/0.135, allocations: 32.92 kB / 0.5597 GB, free: 2.094 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.368e-05/0.135, allocations: 0 / 0.5597 GB, free: 2.094 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002584/0.1353, allocations: 103.3 kB / 0.5598 GB, free: 1.98 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.1353, allocations: 0 / 0.5598 GB, free: 1.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004674/0.1357, allocations: 145.5 kB / 0.5599 GB, free: 1.832 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.638e-05/0.1358, allocations: 51.41 kB / 0.56 GB, free: 1.77 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000142/0.1359, allocations: 156.6 kB / 0.5601 GB, free: 1.609 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.176e-05/0.1359, allocations: 25.7 kB / 0.5601 GB, free: 1.578 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.101e-05/0.136, allocations: 108.1 kB / 0.5602 GB, free: 1.469 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.605e-05/0.136, allocations: 19.86 kB / 0.5603 GB, free: 1.449 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.965e-05/0.1361, allocations: 29.66 kB / 0.5603 GB, free: 1.414 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.1363, allocations: 318.8 kB / 0.5606 GB, free: 1.094 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001285/0.1364, allocations: 35.97 kB / 0.5606 GB, free: 1.059 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000131/0.1365, allocations: 53.69 kB / 0.5607 GB, free: 1 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002164/0.1368, allocations: 69.62 kB / 0.5607 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1368, allocations: 0 / 0.5607 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003058/0.1371, allocations: 125.7 kB / 0.5609 GB, free: 0.7969 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.1371, allocations: 12.03 kB / 0.5609 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.1371, allocations: 3.938 kB / 0.5609 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.288e-05/0.1371, allocations: 0 / 0.5609 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.1372, allocations: 15.98 kB / 0.5609 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.1372, allocations: 0 / 0.5609 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/0.1373, allocations: 27.95 kB / 0.5609 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-06/0.1373, allocations: 0 / 0.5609 GB, free: 0.7383 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,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.0001004/0.1374, allocations: 117.8 kB / 0.561 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.243e-05/0.1375, allocations: 19.78 kB / 0.561 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.234e-05/0.1375, allocations: 16.7 kB / 0.5611 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.1375, allocations: 4 kB / 0.5611 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.1375, allocations: 0 / 0.5611 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.1375, allocations: 0 / 0.5611 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005625/0.1381, allocations: 390.5 kB / 0.5614 GB, free: 136 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1381, allocations: 0 / 0.5614 GB, free: 136 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.542e-05/0.1382, allocations: 11.98 kB / 0.5615 GB, free: 124 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.1382, allocations: 0 / 0.5615 GB, free: 124 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.949e-06/0.1382, allocations: 7.938 kB / 0.5615 GB, free: 116 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.1382, allocations: 4 kB / 0.5615 GB, free: 112 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1382, allocations: 0 / 0.5615 GB, free: 112 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004907/0.1387, allocations: 247.8 kB / 0.5617 GB, free: 15.85 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.626e-05/0.1387, allocations: 96.97 kB / 0.5618 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.179e-05/0.1387, allocations: 4 kB / 0.5618 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001384/0.1389, allocations: 15.98 kB / 0.5618 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.818e-05/0.1389, allocations: 15.97 kB / 0.5618 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.007e-05/0.139, allocations: 8 kB / 0.5618 GB, free: 15.69 MB / 430.1 MB Notification: Performance of sorting global known variables: time 9.631e-05/0.1391, allocations: 110.3 kB / 0.5619 GB, free: 15.59 MB / 430.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1391, allocations: 64 / 0.5619 GB, free: 15.59 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002391/0.1393, allocations: 20 kB / 0.562 GB, free: 15.57 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.0008282/0.1401, allocations: 0.7825 MB / 0.5627 GB, free: 14.76 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002918/0.1404, allocations: 75.89 kB / 0.5628 GB, free: 14.69 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1404, allocations: 0 / 0.5628 GB, free: 14.69 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001413/0.1406, allocations: 48.09 kB / 0.5628 GB, free: 14.64 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003097/0.1409, allocations: 21.97 kB / 0.5629 GB, free: 14.62 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002523/0.1434, allocations: 1.702 MB / 0.5645 GB, free: 12.83 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.1437, allocations: 0.6963 MB / 0.5652 GB, free: 12.11 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 4.38e-05/0.1437, allocations: 4.562 kB / 0.5652 GB, free: 12.11 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.382e-05/0.1438, allocations: 39.64 kB / 0.5652 GB, free: 12.07 MB / 430.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1438, allocations: 0 / 0.5652 GB, free: 12.07 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02458/0.1684, allocations: 2.635 MB / 0.5678 GB, free: 9.512 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.009/8.178, allocations: 4.609 kB / 0.5678 GB, free: 9.512 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000995025 --timeout=50 --tolerance=1e-06 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.10946417087689] Failed to read output from testmodel.py, exit status != 0: ['time', 'integrator.y'] 8.248801277019083 8.274964206 8.138353525 Calling exit ...