Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",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.0009253/0.0009253, allocations: 95.22 kB / 17 MB, free: 6.418 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.001066/0.001066, allocations: 191.4 kB / 17.89 MB, free: 5.945 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.385/1.385, allocations: 223.2 MB / 241.9 MB, free: 368 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.2235/0.2235, allocations: 44.23 MB / 337.2 MB, free: 2.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003306/0.0003306, allocations: 8 kB / 409.7 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.1471, allocations: 61.91 MB / 471.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001374/0.1485, allocations: 0.5222 MB / 472.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002548/0.1488, allocations: 51.89 kB / 472.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.786e-05/0.1489, allocations: 0 / 472.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001149/0.149, allocations: 3.938 kB / 472.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.838e-05/0.1491, allocations: 7.938 kB / 472.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001479/0.1492, allocations: 11.98 kB / 472.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001138/0.1493, allocations: 35.86 kB / 472.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001099/0.1495, allocations: 15.97 kB / 472.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.061e-05/0.1495, allocations: 11.94 kB / 472.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.939e-05/0.1495, allocations: 11.92 kB / 472.3 MB, free: 13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.768e-05/0.1496, allocations: 0 / 472.3 MB, free: 13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.224e-05/0.1496, allocations: 0 / 472.3 MB, free: 13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.308e-05/0.1496, allocations: 0 / 472.3 MB, free: 13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.659e-05/0.1497, allocations: 37.64 kB / 472.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.705e-05/0.1497, allocations: 32.22 kB / 472.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.353e-06/0.1498, allocations: 4 kB / 472.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1498, allocations: 0 / 472.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.1498, allocations: 0 / 472.4 MB, free: 12.92 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004697/0.1503, allocations: 339.2 kB / 472.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/0.1503, allocations: 8.031 kB / 472.7 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.482e-05/0.1504, allocations: 34.5 kB / 472.7 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.34e-05/0.1504, allocations: 7.906 kB / 472.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002059/0.1506, allocations: 175 kB / 472.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.567e-06/0.1506, allocations: 8 kB / 472.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.448e-05/0.1507, allocations: 7.953 kB / 472.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001228/0.1508, allocations: 53.61 kB / 473 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.132e-06/0.1508, allocations: 0 / 473 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.1508, allocations: 4 kB / 473 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.1508, allocations: 0 / 473 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.133e-05/0.1509, allocations: 15.98 kB / 473 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006086/0.1515, allocations: 300.7 kB / 473.3 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.271e-05/0.1516, allocations: 26.58 kB / 473.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.986e-05/0.1516, allocations: 4.859 kB / 473.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.378e-06/0.1516, allocations: 4.062 kB / 473.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001312/0.1518, allocations: 47.41 kB / 473.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.803e-06/0.1518, allocations: 0 / 473.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001744/0.152, allocations: 65.53 kB / 473.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001471/0.1521, allocations: 51.41 kB / 473.5 MB, free: 11.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001218/0.1522, allocations: 114.3 kB / 473.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.1523, allocations: 25.7 kB / 473.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.802e-05/0.1524, allocations: 92.12 kB / 473.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.944e-05/0.1524, allocations: 4 kB / 473.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.727e-06/0.1524, allocations: 3.938 kB / 473.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002107/0.1526, allocations: 322.8 kB / 474 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.02e-05/0.1526, allocations: 7.984 kB / 474.1 MB, free: 11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.778e-05/0.1527, allocations: 21.91 kB / 474.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.515e-05/0.1527, allocations: 16.02 kB / 474.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1527, allocations: 0 / 474.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001149/0.1529, allocations: 53.59 kB / 474.1 MB, free: 10.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.1529, allocations: 4 kB / 474.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.1529, allocations: 0 / 474.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.599e-05/0.1529, allocations: 0 / 474.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.328e-05/0.153, allocations: 8.031 kB / 474.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.153, allocations: 3.938 kB / 474.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.27e-05/0.153, allocations: 7.984 kB / 474.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.202e-06/0.153, allocations: 3.938 kB / 474.2 MB, free: 10.88 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: 2 ($whenCondition1,greaterEqualThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.0001147/0.1532, allocations: 122.3 kB / 474.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.722e-05/0.1532, allocations: 7.906 kB / 474.3 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.971e-05/0.1532, allocations: 3.906 kB / 474.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.1532, allocations: 0 / 474.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.1532, allocations: 0 / 474.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.1533, allocations: 4 kB / 474.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003994/0.1537, allocations: 306.5 kB / 474.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1537, allocations: 0 / 474.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.557e-05/0.1537, allocations: 4 kB / 474.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.1537, allocations: 0 / 474.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.967e-06/0.1537, allocations: 0 / 474.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1537, allocations: 0 / 474.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1538, allocations: 0 / 474.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001803/0.1539, allocations: 155.5 kB / 474.8 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.146e-05/0.154, allocations: 85.05 kB / 474.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.408e-05/0.154, allocations: 0 / 474.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.844e-05/0.1541, allocations: 0 / 474.8 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.16e-05/0.1541, allocations: 4 kB / 474.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.095e-06/0.1541, allocations: 3.984 kB / 474.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.351e-05/0.1542, allocations: 99.16 kB / 475 MB, free: 9.992 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1542, allocations: 0 / 475 MB, free: 9.992 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002381/0.1545, allocations: 8.062 kB / 475 MB, free: 9.984 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0004842/0.1549, allocations: 0.6851 MB / 475.6 MB, free: 9.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.128e-05/0.155, allocations: 16.12 kB / 475.7 MB, free: 9.254 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1551, allocations: 4 kB / 475.7 MB, free: 9.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.035e-05/0.1551, allocations: 12.08 kB / 475.7 MB, free: 9.238 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002887/0.1554, allocations: 8.125 kB / 475.7 MB, free: 9.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008623/0.1563, allocations: 461.2 kB / 476.1 MB, free: 8.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000358/0.1566, allocations: 0.6887 MB / 476.8 MB, free: 8.016 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.682e-05/0.1567, allocations: 4 kB / 476.8 MB, free: 8.012 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.711e-05/0.1567, allocations: 15.44 kB / 476.8 MB, free: 7.996 MB / 350.1 MB Notification: Performance of SimCode: time 1.102e-06/0.1567, allocations: 0 / 476.8 MB, free: 7.996 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01571/0.1724, allocations: 1.325 MB / 478.2 MB, free: 6.801 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002862/0.1728, allocations: 184.6 kB / 478.3 MB, free: 6.559 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.777/1.95, allocations: 0 / 478.3 MB, free: 6.559 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat does not exist to compare? outputFormat=mat