Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001035/0.001035, allocations: 93.92 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00111/0.001111, allocations: 186.9 kB / 17.88 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 223.2 MB / 241.8 MB, free: 14.67 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1993/0.1993, allocations: 44.22 MB / 337.1 MB, free: 2.691 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003185/0.0003186, allocations: 8.719 kB / 409.6 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1376, allocations: 61.92 MB / 471.5 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.001952/0.1397, allocations: 1.311 MB / 472.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.1408, allocations: 0.5031 MB / 473.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001239/0.1409, allocations: 4 kB / 473.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.797e-05/0.141, allocations: 3.938 kB / 473.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001399/0.1412, allocations: 11.92 kB / 473.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004396/0.1416, allocations: 75.83 kB / 473.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002207/0.1418, allocations: 67.86 kB / 473.5 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001768/0.142, allocations: 27.97 kB / 473.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.189e-05/0.1421, allocations: 31.84 kB / 473.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001045/0.1422, allocations: 31.84 kB / 473.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.524e-05/0.1423, allocations: 4 kB / 473.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.913e-05/0.1423, allocations: 4 kB / 473.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.457e-05/0.1423, allocations: 23.91 kB / 473.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.048e-05/0.1424, allocations: 37.64 kB / 473.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001494/0.1426, allocations: 52.12 kB / 473.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1426, allocations: 4 kB / 473.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.1426, allocations: 0 / 473.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1426, allocations: 0 / 473.7 MB, free: 11.45 MB / 350.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.000734/0.1433, allocations: 403 kB / 474.1 MB, free: 11.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.96e-05/0.1434, allocations: 12.03 kB / 474.1 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.748e-05/0.1435, allocations: 34.56 kB / 474.2 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.139e-05/0.1435, allocations: 19.83 kB / 474.2 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002708/0.1438, allocations: 198.8 kB / 474.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.278e-05/0.1438, allocations: 11.94 kB / 474.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.61e-05/0.1439, allocations: 11.95 kB / 474.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003409/0.1442, allocations: 108.9 kB / 474.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.1443, allocations: 0 / 474.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.074e-05/0.1443, allocations: 4 kB / 474.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.1443, allocations: 4 kB / 474.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002015/0.1445, allocations: 55.95 kB / 474.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008213/0.1453, allocations: 400.5 kB / 475 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003388/0.1457, allocations: 118.4 kB / 475.1 MB, free: 9.938 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.324e-05/0.1457, allocations: 0 / 475.1 MB, free: 9.938 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002981/0.146, allocations: 115.5 kB / 475.2 MB, free: 9.812 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.146, allocations: 0 / 475.2 MB, free: 9.812 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004785/0.1465, allocations: 149.5 kB / 475.3 MB, free: 9.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.528e-05/0.1466, allocations: 59.36 kB / 475.4 MB, free: 9.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001214/0.1467, allocations: 150.3 kB / 475.5 MB, free: 9.434 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.1467, allocations: 25.7 kB / 475.6 MB, free: 9.402 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.719e-05/0.1468, allocations: 112.2 kB / 475.7 MB, free: 9.289 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.726e-05/0.1468, allocations: 19.8 kB / 475.7 MB, free: 9.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.679e-06/0.1469, allocations: 0 / 475.7 MB, free: 9.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.147, allocations: 322.8 kB / 476 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.1471, allocations: 39.97 kB / 476 MB, free: 8.906 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001343/0.1473, allocations: 57.69 kB / 476.1 MB, free: 8.844 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001096/0.1474, allocations: 31.98 kB / 476.1 MB, free: 8.812 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1474, allocations: 8 kB / 476.1 MB, free: 8.805 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000274/0.1477, allocations: 121.6 kB / 476.3 MB, free: 8.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.1477, allocations: 10.19 kB / 476.3 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.1477, allocations: 96 / 476.3 MB, free: 8.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.1477, allocations: 7.969 kB / 476.3 MB, free: 8.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/0.1478, allocations: 19.98 kB / 476.3 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.1479, allocations: 4 kB / 476.3 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.752e-05/0.148, allocations: 27.92 kB / 476.3 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.176e-05/0.148, allocations: 4 kB / 476.3 MB, free: 8.609 MB / 350.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,$whenCondition2,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001144/0.1481, allocations: 122.3 kB / 476.5 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.812e-05/0.1481, allocations: 11.89 kB / 476.5 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.565e-05/0.1482, allocations: 16.72 kB / 476.5 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.1482, allocations: 0 / 476.5 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.1482, allocations: 0 / 476.5 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1482, allocations: 0 / 476.5 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005293/0.1487, allocations: 410.4 kB / 476.9 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.1487, allocations: 0 / 476.9 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.667e-05/0.1488, allocations: 12 kB / 476.9 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.1488, allocations: 0 / 476.9 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.1489, allocations: 3.984 kB / 476.9 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.1489, allocations: 4 kB / 476.9 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.1489, allocations: 3.953 kB / 476.9 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004932/0.1494, allocations: 259.3 kB / 477.2 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.906e-05/0.1494, allocations: 84.92 kB / 477.2 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.406e-05/0.1495, allocations: 8.031 kB / 477.2 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.1496, allocations: 28.03 kB / 477.3 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.745e-05/0.1497, allocations: 11.94 kB / 477.3 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.158e-05/0.1497, allocations: 11.98 kB / 477.3 MB, free: 7.543 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001036/0.1498, allocations: 107.2 kB / 477.4 MB, free: 7.441 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1498, allocations: 0 / 477.4 MB, free: 7.441 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002398/0.1501, allocations: 20 kB / 477.4 MB, free: 7.422 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009374/0.151, allocations: 0.7949 MB / 478.2 MB, free: 6.602 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000355/0.1514, allocations: 87.89 kB / 478.3 MB, free: 6.516 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/0.1514, allocations: 4.125 kB / 478.3 MB, free: 6.512 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001487/0.1515, allocations: 43.97 kB / 478.4 MB, free: 6.469 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003221/0.1519, allocations: 19.92 kB / 478.4 MB, free: 6.449 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001607/0.1535, allocations: 0.8758 MB / 479.2 MB, free: 5.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000428/0.1539, allocations: 0.7004 MB / 479.9 MB, free: 4.793 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.632e-05/0.154, allocations: 12.48 kB / 480 MB, free: 4.781 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.214e-05/0.1541, allocations: 35.42 kB / 480 MB, free: 4.746 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1541, allocations: 0 / 480 MB, free: 4.746 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01547/0.1696, allocations: 2.198 MB / 482.2 MB, free: 2.66 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001971/0.1698, allocations: 183.9 kB / 482.4 MB, free: 2.414 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.813/1.983, allocations: 0 / 482.4 MB, free: 2.414 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat does not exist to compare? outputFormat=mat