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.001096/0.001096, allocations: 92.11 kB / 17 MB, free: 6.355 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.001444/0.001444, allocations: 186.2 kB / 17.89 MB, free: 5.926 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.417/1.417, allocations: 223.2 MB / 241.9 MB, free: 344 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.242/0.242, allocations: 44.22 MB / 337.2 MB, free: 2.898 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003287/0.0003288, allocations: 8 kB / 409.7 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1225, allocations: 61.92 MB / 471.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.00174/0.1242, allocations: 1.307 MB / 473 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008516/0.1251, allocations: 0.5148 MB / 473.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.017e-05/0.1252, allocations: 4 kB / 473.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.706e-05/0.1253, allocations: 15.8 kB / 473.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.67e-05/0.1254, allocations: 3.938 kB / 473.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003043/0.1257, allocations: 79.14 kB / 473.6 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001788/0.1259, allocations: 103.7 kB / 473.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.126, allocations: 27.97 kB / 473.7 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.356e-05/0.126, allocations: 35.86 kB / 473.7 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.633e-05/0.1261, allocations: 35.83 kB / 473.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.599e-05/0.1261, allocations: 0 / 473.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.064e-05/0.1262, allocations: 4 kB / 473.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.289e-05/0.1262, allocations: 11.94 kB / 473.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.094e-05/0.1262, allocations: 41.62 kB / 473.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.946e-05/0.1263, allocations: 56.11 kB / 473.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.1263, allocations: 4 kB / 473.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1264, allocations: 0 / 473.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.426e-06/0.1264, allocations: 0 / 473.9 MB, free: 11.4 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.0006064/0.127, allocations: 399 kB / 474.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.127, allocations: 12.03 kB / 474.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.491e-05/0.1271, allocations: 38.56 kB / 474.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.166e-05/0.1271, allocations: 7.906 kB / 474.3 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002278/0.1273, allocations: 210.7 kB / 474.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.666e-05/0.1274, allocations: 4 kB / 474.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.821e-05/0.1274, allocations: 11.95 kB / 474.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002843/0.1277, allocations: 112.2 kB / 474.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.1277, allocations: 0 / 474.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.084e-05/0.1277, allocations: 0 / 474.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.251e-06/0.1277, allocations: 3.984 kB / 474.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001623/0.1279, allocations: 55.97 kB / 474.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006779/0.1286, allocations: 408.5 kB / 475.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003127/0.1289, allocations: 114.5 kB / 475.2 MB, free: 9.895 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.129, allocations: 36.91 kB / 475.3 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.478e-05/0.1291, allocations: 4 kB / 475.3 MB, free: 9.852 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002816/0.1293, allocations: 115.2 kB / 475.4 MB, free: 9.727 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 2.625e-06/0.1294, allocations: 0 / 475.4 MB, free: 9.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004448/0.1298, allocations: 157.4 kB / 475.5 MB, free: 9.566 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.1299, allocations: 59.3 kB / 475.6 MB, free: 9.496 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001343/0.13, allocations: 150.3 kB / 475.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.797e-05/0.13, allocations: 25.7 kB / 475.8 MB, free: 9.309 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.164e-05/0.1301, allocations: 108.2 kB / 475.9 MB, free: 9.199 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.326e-05/0.1301, allocations: 15.8 kB / 475.9 MB, free: 9.184 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.508e-06/0.1301, allocations: 0 / 475.9 MB, free: 9.184 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.1302, allocations: 318.8 kB / 476.2 MB, free: 8.863 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001157/0.1304, allocations: 43.97 kB / 476.2 MB, free: 8.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001137/0.1305, allocations: 53.69 kB / 476.3 MB, free: 8.762 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001078/0.1306, allocations: 39.98 kB / 476.3 MB, free: 8.723 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1306, allocations: 0 / 476.3 MB, free: 8.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002715/0.1309, allocations: 125.4 kB / 476.5 MB, free: 8.594 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.1309, allocations: 4.031 kB / 476.5 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.1309, allocations: 4 kB / 476.5 MB, free: 8.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.1309, allocations: 3.984 kB / 476.5 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.985e-05/0.131, allocations: 20 kB / 476.5 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.1311, allocations: 3.953 kB / 476.5 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.841e-05/0.1311, allocations: 23.97 kB / 476.5 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.959e-06/0.1312, allocations: 8.297 kB / 476.5 MB, free: 8.527 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 9.247e-05/0.1313, allocations: 118.4 kB / 476.6 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.906e-05/0.1313, allocations: 11.91 kB / 476.6 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.464e-05/0.1313, allocations: 12.72 kB / 476.7 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.1313, allocations: 0 / 476.7 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.1313, allocations: 288 / 476.7 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.1314, allocations: 7.953 kB / 476.7 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005213/0.1319, allocations: 406.4 kB / 477.1 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.1319, allocations: 3.938 kB / 477.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.035e-05/0.132, allocations: 15.98 kB / 477.1 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.132, allocations: 4 kB / 477.1 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/0.132, allocations: 0 / 477.1 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.132, allocations: 7.953 kB / 477.1 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.132, allocations: 0 / 477.1 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004402/0.1325, allocations: 259.3 kB / 477.4 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.091e-05/0.1325, allocations: 92.95 kB / 477.4 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.042e-05/0.1326, allocations: 7.922 kB / 477.4 MB, free: 7.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001285/0.1327, allocations: 24.05 kB / 477.5 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.919e-05/0.1327, allocations: 19.92 kB / 477.5 MB, free: 7.457 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.826e-06/0.1328, allocations: 4 kB / 477.5 MB, free: 7.453 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.985e-05/0.1328, allocations: 113.1 kB / 477.6 MB, free: 7.344 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1328, allocations: 0 / 477.6 MB, free: 7.344 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002258/0.1331, allocations: 16 kB / 477.6 MB, free: 7.328 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.0006676/0.1337, allocations: 0.7827 MB / 478.4 MB, free: 6.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002681/0.134, allocations: 95.95 kB / 478.5 MB, free: 6.426 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.134, allocations: 0 / 478.5 MB, free: 6.426 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000124/0.1342, allocations: 47.95 kB / 478.5 MB, free: 6.379 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003027/0.1345, allocations: 27.88 kB / 478.6 MB, free: 6.352 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001271/0.1358, allocations: 0.717 MB / 479.3 MB, free: 5.582 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000318/0.1361, allocations: 0.7003 MB / 480 MB, free: 4.855 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.246e-05/0.1361, allocations: 12.55 kB / 480 MB, free: 4.844 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.597e-05/0.1362, allocations: 27.44 kB / 480 MB, free: 4.816 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1362, allocations: 0 / 480 MB, free: 4.816 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0123/0.1485, allocations: 2.224 MB / 482.3 MB, free: 2.707 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001769/0.1487, allocations: 185.4 kB / 482.4 MB, free: 2.465 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.832/1.98, allocations: 0 / 482.4 MB, free: 2.465 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