Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.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.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator",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.001429/0.001429, allocations: 100.2 kB / 16.99 MB, free: 5.941 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.001266/0.001266, allocations: 181 kB / 17.87 MB, free: 5.609 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.403/1.403, allocations: 223.2 MB / 241.8 MB, free: 392 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.2494/0.2494, allocations: 44.23 MB / 337.1 MB, free: 2.906 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004836/0.0004836, allocations: 8 kB / 409.6 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.1421, allocations: 61.92 MB / 471.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002004/0.1442, allocations: 1.291 MB / 472.8 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008008/0.145, allocations: 463.2 kB / 473.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.369e-05/0.1451, allocations: 0 / 473.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.348e-05/0.1451, allocations: 7.922 kB / 473.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.919e-05/0.1452, allocations: 7.984 kB / 473.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001724/0.1454, allocations: 35.89 kB / 473.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001395/0.1456, allocations: 51.89 kB / 473.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001199/0.1457, allocations: 24.2 kB / 473.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.002e-05/0.1457, allocations: 15.94 kB / 473.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.021e-05/0.1458, allocations: 27.84 kB / 473.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.681e-05/0.1458, allocations: 4 kB / 473.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.137e-05/0.1459, allocations: 0 / 473.4 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.691e-05/0.1459, allocations: 19.86 kB / 473.5 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.739e-05/0.146, allocations: 41.62 kB / 473.5 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.41e-05/0.1461, allocations: 44.14 kB / 473.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.1461, allocations: 0 / 473.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1461, allocations: 0 / 473.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.1461, allocations: 4 kB / 473.6 MB, free: 11.62 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.0006423/0.1467, allocations: 375.1 kB / 473.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.1468, allocations: 8.031 kB / 473.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.837e-05/0.1468, allocations: 42.55 kB / 474 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.532e-05/0.1469, allocations: 7.906 kB / 474 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002359/0.1471, allocations: 198.8 kB / 474.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.1471, allocations: 7.938 kB / 474.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.365e-05/0.1472, allocations: 15.95 kB / 474.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001602/0.1473, allocations: 69.67 kB / 474.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.1474, allocations: 0 / 474.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.1474, allocations: 0 / 474.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.1474, allocations: 4 kB / 474.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.626e-05/0.1475, allocations: 35.92 kB / 474.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000613/0.1481, allocations: 360.5 kB / 474.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001084/0.1482, allocations: 50.56 kB / 474.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.362e-05/0.1483, allocations: 3.938 kB / 474.7 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001544/0.1484, allocations: 75.59 kB / 474.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.694e-06/0.1484, allocations: 0 / 474.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002088/0.1486, allocations: 81.58 kB / 474.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.411e-05/0.1487, allocations: 59.34 kB / 474.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.1488, allocations: 144.2 kB / 475.1 MB, free: 9.918 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.42e-05/0.1489, allocations: 25.7 kB / 475.1 MB, free: 9.887 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.168e-05/0.1489, allocations: 104.1 kB / 475.2 MB, free: 9.781 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.299e-05/0.1489, allocations: 19.8 kB / 475.2 MB, free: 9.762 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.138e-06/0.149, allocations: 0 / 475.2 MB, free: 9.762 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.1491, allocations: 326.8 kB / 475.5 MB, free: 9.434 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.822e-05/0.1492, allocations: 16 kB / 475.5 MB, free: 9.418 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.353e-05/0.1492, allocations: 38.5 kB / 475.6 MB, free: 9.371 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.52e-05/0.1493, allocations: 16 kB / 475.6 MB, free: 9.355 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1493, allocations: 0 / 475.6 MB, free: 9.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001299/0.1494, allocations: 89.81 kB / 475.7 MB, free: 9.262 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.1494, allocations: 12.06 kB / 475.7 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.1495, allocations: 0 / 475.7 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.077e-05/0.1495, allocations: 0 / 475.7 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.871e-05/0.1495, allocations: 15.92 kB / 475.7 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.333e-06/0.1496, allocations: 3.953 kB / 475.7 MB, free: 9.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.787e-05/0.1496, allocations: 15.91 kB / 475.7 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.675e-06/0.1496, allocations: 4 kB / 475.7 MB, free: 9.211 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.0001408/0.1498, allocations: 118.3 kB / 475.9 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.663e-05/0.1498, allocations: 15.89 kB / 475.9 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.151e-05/0.1498, allocations: 8.719 kB / 475.9 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.1499, allocations: 4.188 kB / 475.9 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1499, allocations: 0 / 475.9 MB, free: 9.059 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1499, allocations: 7.891 kB / 475.9 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003315/0.1502, allocations: 342.5 kB / 476.2 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.1502, allocations: 0 / 476.2 MB, free: 8.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.162e-05/0.1503, allocations: 4 kB / 476.2 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.1503, allocations: 4 kB / 476.2 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.1503, allocations: 11.98 kB / 476.2 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.1503, allocations: 3.953 kB / 476.2 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1503, allocations: 0 / 476.2 MB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002145/0.1505, allocations: 183.4 kB / 476.4 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.65e-05/0.1506, allocations: 89.03 kB / 476.5 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.671e-05/0.1506, allocations: 0 / 476.5 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.004e-05/0.1507, allocations: 8 kB / 476.5 MB, free: 8.328 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.718e-05/0.1508, allocations: 16 kB / 476.5 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.617e-06/0.1508, allocations: 7.984 kB / 476.5 MB, free: 8.305 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.296e-05/0.1509, allocations: 105.3 kB / 476.6 MB, free: 8.203 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1509, allocations: 0 / 476.6 MB, free: 8.203 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002271/0.1511, allocations: 15.91 kB / 476.7 MB, free: 8.188 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,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.0004939/0.1516, allocations: 0.7241 MB / 477.4 MB, free: 7.438 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001127/0.1517, allocations: 44.05 kB / 477.4 MB, free: 7.395 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.1517, allocations: 0 / 477.4 MB, free: 7.395 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.868e-05/0.1518, allocations: 27.86 kB / 477.5 MB, free: 7.367 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000244/0.152, allocations: 19.94 kB / 477.5 MB, free: 7.348 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001213/0.1533, allocations: 0.9268 MB / 478.4 MB, free: 6.363 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003917/0.1537, allocations: 0.7004 MB / 479.1 MB, free: 5.637 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.813e-05/0.1537, allocations: 8.422 kB / 479.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.972e-05/0.1538, allocations: 27.42 kB / 479.1 MB, free: 5.602 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1538, allocations: 0 / 479.1 MB, free: 5.602 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01197/0.1658, allocations: 1.909 MB / 481 MB, free: 3.809 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000175/0.166, allocations: 182.8 kB / 481.2 MB, free: 3.562 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.792/1.958, allocations: 0 / 481.2 MB, free: 3.562 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat does not exist to compare? outputFormat=mat