Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009758/0.0009758, allocations: 95.58 kB / 16.98 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001039/0.001039, allocations: 198.6 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2427/0.2427, allocations: 45.92 MB / 344 MB, free: 12.11 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003165/0.0003167, allocations: 11.98 kB / 418.1 MB, free: 20.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1464/0.1467, allocations: 63.47 MB / 481.5 MB, free: 5.293 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002345/0.1492, allocations: 1.318 MB / 482.8 MB, free: 3.961 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001092/0.1503, allocations: 483.2 kB / 483.3 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.219e-05/0.1504, allocations: 0 / 483.3 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.856e-05/0.1505, allocations: 7.922 kB / 483.3 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001011/0.1506, allocations: 15.98 kB / 483.3 MB, free: 3.461 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001926/0.1508, allocations: 31.78 kB / 483.4 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001574/0.1509, allocations: 55.88 kB / 483.4 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.1511, allocations: 20.22 kB / 483.4 MB, free: 3.352 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.209e-05/0.1511, allocations: 19.92 kB / 483.5 MB, free: 3.332 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.412e-05/0.1512, allocations: 27.84 kB / 483.5 MB, free: 3.305 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.835e-05/0.1512, allocations: 4 kB / 483.5 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.179e-05/0.1512, allocations: 4 kB / 483.5 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.93e-05/0.1513, allocations: 11.94 kB / 483.5 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001074/0.1514, allocations: 37.62 kB / 483.5 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.043e-05/0.1515, allocations: 52.12 kB / 483.6 MB, free: 3.191 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1515, allocations: 0 / 483.6 MB, free: 3.191 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1515, allocations: 0 / 483.6 MB, free: 3.191 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.91e-06/0.1515, allocations: 0 / 483.6 MB, free: 3.191 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005811/0.1521, allocations: 371.1 kB / 484 MB, free: 2.781 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.1521, allocations: 12.03 kB / 484 MB, free: 2.77 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.805e-05/0.1522, allocations: 42.55 kB / 484 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.257e-05/0.1522, allocations: 7.906 kB / 484 MB, free: 2.711 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002275/0.1525, allocations: 202.8 kB / 484.2 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.1525, allocations: 0 / 484.2 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.93e-05/0.1525, allocations: 12 kB / 484.2 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001554/0.1527, allocations: 65.67 kB / 484.3 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.1527, allocations: 0 / 484.3 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.1527, allocations: 4 kB / 484.3 MB, free: 2.387 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.1527, allocations: 8 kB / 484.3 MB, free: 2.379 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.15e-05/0.1528, allocations: 35.92 kB / 484.3 MB, free: 2.344 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006041/0.1534, allocations: 364.4 kB / 484.7 MB, free: 1.938 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001167/0.1536, allocations: 50.56 kB / 484.7 MB, free: 1.879 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.566e-05/0.1536, allocations: 7.891 kB / 484.7 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001767/0.1538, allocations: 67.59 kB / 484.8 MB, free: 1.793 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.1538, allocations: 0 / 484.8 MB, free: 1.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002192/0.154, allocations: 89.56 kB / 484.9 MB, free: 1.699 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.221e-05/0.1541, allocations: 55.39 kB / 485 MB, free: 1.633 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001279/0.1542, allocations: 136.4 kB / 485.1 MB, free: 1.492 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.299e-05/0.1542, allocations: 37.64 kB / 485.1 MB, free: 1.449 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.487e-05/0.1543, allocations: 96.05 kB / 485.2 MB, free: 1.352 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.493e-05/0.1544, allocations: 19.88 kB / 485.2 MB, free: 1.332 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.462e-06/0.1544, allocations: 4 kB / 485.2 MB, free: 1.328 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.1546, allocations: 326.8 kB / 485.6 MB, free: 1 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.406e-05/0.1546, allocations: 12 kB / 485.6 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.35e-05/0.1547, allocations: 42.5 kB / 485.6 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.719e-05/0.1547, allocations: 16 kB / 485.6 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.1547, allocations: 0 / 485.6 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000138/0.1549, allocations: 93.47 kB / 485.7 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.1549, allocations: 8 kB / 485.7 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.339e-06/0.1549, allocations: 0 / 485.7 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.1549, allocations: 0 / 485.7 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.678e-05/0.155, allocations: 15.92 kB / 485.7 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.155, allocations: 0 / 485.7 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.623e-05/0.1551, allocations: 15.97 kB / 485.8 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.346e-06/0.1551, allocations: 4 kB / 485.8 MB, free: 0.7812 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.fallingEdge.not_u,fallingEdge.not_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.0001051/0.1552, allocations: 117.8 kB / 485.9 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.797e-05/0.1552, allocations: 15.84 kB / 485.9 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.905e-05/0.1552, allocations: 8.719 kB / 485.9 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.1553, allocations: 4 kB / 485.9 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.1553, allocations: 0 / 485.9 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.1553, allocations: 0 / 485.9 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004022/0.1557, allocations: 350.8 kB / 486.3 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1557, allocations: 0 / 486.3 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.551e-05/0.1557, allocations: 4 kB / 486.3 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.1558, allocations: 7.938 kB / 486.3 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.148e-05/0.1558, allocations: 3.984 kB / 486.3 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.1558, allocations: 0 / 486.3 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1558, allocations: 0 / 486.3 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002129/0.156, allocations: 195.4 kB / 486.5 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.935e-05/0.1561, allocations: 92.98 kB / 486.5 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.768e-05/0.1561, allocations: 0 / 486.5 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.188e-05/0.1562, allocations: 12 kB / 486.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.197e-05/0.1563, allocations: 7.984 kB / 486.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.103e-06/0.1563, allocations: 3.984 kB / 486.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.066e-05/0.1563, allocations: 103.3 kB / 486.7 MB, free: 15.78 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1564, allocations: 0 / 486.7 MB, free: 15.78 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002224/0.1566, allocations: 19.91 kB / 486.7 MB, free: 15.76 MB / 366.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,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_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.0005275/0.1571, allocations: 0.7207 MB / 487.4 MB, free: 15.01 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001219/0.1572, allocations: 43.97 kB / 487.5 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1573, allocations: 4 kB / 487.5 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.125e-05/0.1573, allocations: 24.11 kB / 487.5 MB, free: 14.94 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002574/0.1576, allocations: 26.3 kB / 487.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001154/0.1587, allocations: 0.9108 MB / 488.4 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003251/0.1591, allocations: 0.7043 MB / 489.1 MB, free: 13.22 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.675e-05/0.1591, allocations: 8.422 kB / 489.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.21e-05/0.1592, allocations: 23.44 kB / 489.2 MB, free: 13.19 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1592, allocations: 0 / 489.2 MB, free: 13.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01227/0.1715, allocations: 1.908 MB / 491.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002257/0.1717, allocations: 174.8 kB / 491.2 MB, free: 11.15 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.753/1.925, allocations: 0 / 491.2 MB, free: 11.15 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat does not exist to compare? outputFormat=mat