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.001404/0.001404, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00164/0.00164, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 227.4 MB / 246.3 MB, free: 10.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.241/0.241, allocations: 46.11 MB / 343.6 MB, free: 11.8 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 76.94 kB / 416.9 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.1438, allocations: 62.45 MB / 479.4 MB, free: 5.645 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003828/0.1477, allocations: 1.68 MB / 481.1 MB, free: 3.949 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001205/0.1489, allocations: 0.5104 MB / 481.6 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001287/0.1491, allocations: 3.938 kB / 481.6 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001455/0.1492, allocations: 3.938 kB / 481.6 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.105e-05/0.1494, allocations: 15.91 kB / 481.6 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002336/0.1496, allocations: 23.98 kB / 481.6 MB, free: 3.387 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001407/0.1497, allocations: 71.78 kB / 481.7 MB, free: 3.316 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001477/0.1499, allocations: 40.16 kB / 481.7 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.674e-05/0.15, allocations: 23.91 kB / 481.7 MB, free: 3.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.794e-05/0.1501, allocations: 35.78 kB / 481.8 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.077e-05/0.1501, allocations: 4 kB / 481.8 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.671e-05/0.1501, allocations: 4 kB / 481.8 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.643e-05/0.1501, allocations: 7.984 kB / 481.8 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.2e-05/0.1502, allocations: 35.75 kB / 481.8 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001289/0.1503, allocations: 68 kB / 481.9 MB, free: 3.098 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1504, allocations: 0 / 481.9 MB, free: 3.098 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1504, allocations: 0 / 481.9 MB, free: 3.098 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.71e-06/0.1504, allocations: 4 kB / 481.9 MB, free: 3.094 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.0006568/0.151, allocations: 391.2 kB / 482.3 MB, free: 2.664 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/0.1511, allocations: 8.875 kB / 482.3 MB, free: 2.656 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.702e-05/0.1512, allocations: 46.67 kB / 482.3 MB, free: 2.602 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.752e-05/0.1512, allocations: 8.844 kB / 482.3 MB, free: 2.594 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002333/0.1515, allocations: 184.2 kB / 482.5 MB, free: 2.375 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.919e-05/0.1515, allocations: 8.375 kB / 482.5 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.549e-05/0.1515, allocations: 8.375 kB / 482.5 MB, free: 2.359 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001799/0.1517, allocations: 81.78 kB / 482.6 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-06/0.1517, allocations: 0 / 482.6 MB, free: 2.273 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.1517, allocations: 4 kB / 482.6 MB, free: 2.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.245e-06/0.1518, allocations: 4 kB / 482.6 MB, free: 2.266 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.879e-05/0.1519, allocations: 39.16 kB / 482.7 MB, free: 2.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007056/0.1526, allocations: 364.4 kB / 483 MB, free: 1.824 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001179/0.1527, allocations: 50.61 kB / 483.1 MB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.682e-05/0.1527, allocations: 20.88 kB / 483.1 MB, free: 1.742 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.337e-06/0.1528, allocations: 0 / 483.1 MB, free: 1.742 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002195/0.153, allocations: 67.33 kB / 483.2 MB, free: 1.664 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.402e-06/0.153, allocations: 4 kB / 483.2 MB, free: 1.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002445/0.1533, allocations: 93.45 kB / 483.3 MB, free: 1.562 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.619e-05/0.1533, allocations: 55.39 kB / 483.3 MB, free: 1.496 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.1534, allocations: 140.6 kB / 483.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.884e-05/0.1535, allocations: 29.7 kB / 483.5 MB, free: 1.316 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.294e-05/0.1535, allocations: 96.05 kB / 483.6 MB, free: 1.219 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.876e-05/0.1536, allocations: 19.88 kB / 483.6 MB, free: 1.199 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.529e-05/0.1536, allocations: 25.72 kB / 483.6 MB, free: 1.168 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.1538, allocations: 322.8 kB / 483.9 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.221e-05/0.1538, allocations: 19.98 kB / 484 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.731e-05/0.1539, allocations: 38.52 kB / 484 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.38e-05/0.154, allocations: 54.86 kB / 484 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.154, allocations: 0 / 484 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001539/0.1541, allocations: 89.55 kB / 484.1 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.1542, allocations: 4 kB / 484.1 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.1542, allocations: 7.938 kB / 484.1 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.1542, allocations: 0 / 484.1 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.404e-05/0.1543, allocations: 15.94 kB / 484.2 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.1543, allocations: 0 / 484.2 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.106e-05/0.1544, allocations: 11.89 kB / 484.2 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-06/0.1544, allocations: 4 kB / 484.2 MB, free: 0.5781 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,fallingEdge.not_u,$PRE.fallingEdge.not_u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001108/0.1545, allocations: 113.8 kB / 484.3 MB, free: 468 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.035e-05/0.1545, allocations: 11.94 kB / 484.3 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.227e-05/0.1546, allocations: 20.64 kB / 484.3 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.1546, allocations: 4 kB / 484.3 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.1546, allocations: 0 / 484.3 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.1546, allocations: 0 / 484.3 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000361/0.155, allocations: 346.4 kB / 484.7 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.155, allocations: 0 / 484.7 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.492e-05/0.155, allocations: 4 kB / 484.7 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.62e-06/0.1551, allocations: 0 / 484.7 MB, free: 24 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.25e-05/0.1551, allocations: 7.938 kB / 484.7 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.1551, allocations: 4 kB / 484.7 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1551, allocations: 0 / 484.7 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002542/0.1554, allocations: 199.3 kB / 484.9 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.123e-05/0.1554, allocations: 81.2 kB / 484.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.223e-05/0.1554, allocations: 8.016 kB / 485 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.847e-05/0.1555, allocations: 3.938 kB / 485 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.785e-05/0.1556, allocations: 7.984 kB / 485 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/0.1556, allocations: 16.06 kB / 485 MB, free: 15.67 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.592e-05/0.1557, allocations: 105.6 kB / 485.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1557, allocations: 0 / 485.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002496/0.156, allocations: 15.91 kB / 485.1 MB, free: 15.55 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005097/0.1565, allocations: 0.7279 MB / 485.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001364/0.1566, allocations: 48.03 kB / 485.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.113e-06/0.1566, allocations: 0 / 485.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.332e-05/0.1567, allocations: 23.94 kB / 485.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003394/0.157, allocations: 15.98 kB / 485.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001734/0.1588, allocations: 1.523 MB / 487.4 MB, free: 13.1 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000353/0.1592, allocations: 0.6932 MB / 488.1 MB, free: 12.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.226e-05/0.1592, allocations: 16.41 kB / 488.1 MB, free: 12.37 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.952e-05/0.1593, allocations: 31.42 kB / 488.2 MB, free: 12.34 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1593, allocations: 0 / 488.2 MB, free: 12.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01334/0.1727, allocations: 1.961 MB / 490.1 MB, free: 10.45 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002003/0.1729, allocations: 189.8 kB / 490.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.862/2.035, allocations: 4 kB / 490.3 MB, free: 10.19 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/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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches