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.0008277/0.0008276, allocations: 93.94 kB / 17.35 MB, free: 6.375 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.0009373/0.0009373, allocations: 178.7 kB / 18.26 MB, free: 5.52 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.21/1.21, allocations: 223.3 MB / 242.3 MB, free: 220 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.1614/0.1614, allocations: 44.25 MB / 337.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002616/0.0002616, allocations: 8 kB / 410.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08391/0.08419, allocations: 61.93 MB / 472.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.001448/0.08567, allocations: 1.314 MB / 473.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006565/0.08634, allocations: 478.9 kB / 474.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.715e-05/0.08642, allocations: 0 / 474.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.344e-05/0.08652, allocations: 11.94 kB / 474.1 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.099e-05/0.08657, allocations: 7.922 kB / 474.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001553/0.08673, allocations: 31.92 kB / 474.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001127/0.08685, allocations: 79.75 kB / 474.3 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.575e-05/0.08696, allocations: 28.2 kB / 474.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.995e-05/0.087, allocations: 19.88 kB / 474.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.685e-05/0.08707, allocations: 35.78 kB / 474.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.665e-05/0.08709, allocations: 4 kB / 474.4 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.053e-05/0.08711, allocations: 0 / 474.4 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.106e-05/0.08713, allocations: 11.92 kB / 474.4 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5e-05/0.08719, allocations: 57.5 kB / 474.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.989e-05/0.08728, allocations: 64 kB / 474.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.08729, allocations: 0 / 474.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.376e-06/0.0873, allocations: 0 / 474.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.08731, allocations: 3.938 kB / 474.5 MB, free: 11.11 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.0004459/0.08776, allocations: 379.3 kB / 474.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/0.0878, allocations: 8.031 kB / 474.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.955e-05/0.08785, allocations: 42.73 kB / 474.9 MB, free: 10.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.825e-05/0.08788, allocations: 8.844 kB / 474.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001583/0.08804, allocations: 188.2 kB / 475.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.526e-05/0.08807, allocations: 12.36 kB / 475.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.804e-05/0.08809, allocations: 4.375 kB / 475.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001341/0.08823, allocations: 81.73 kB / 475.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/0.08825, allocations: 4 kB / 475.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.017e-06/0.08826, allocations: 0 / 475.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.08827, allocations: 4 kB / 475.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.395e-05/0.08835, allocations: 31.98 kB / 475.2 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000486/0.08884, allocations: 360.6 kB / 475.6 MB, free: 9.859 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.368e-05/0.08895, allocations: 54.5 kB / 475.6 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.116e-05/0.08899, allocations: 16.89 kB / 475.7 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.324e-06/0.08901, allocations: 0 / 475.7 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001386/0.08915, allocations: 71.42 kB / 475.7 MB, free: 9.695 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.302e-06/0.08916, allocations: 0 / 475.7 MB, free: 9.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0001883/0.08935, allocations: 93.45 kB / 475.8 MB, free: 9.598 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.125e-05/0.08939, allocations: 51.41 kB / 475.9 MB, free: 9.535 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.78e-05/0.0895, allocations: 148.1 kB / 476 MB, free: 9.383 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.599e-05/0.08952, allocations: 29.7 kB / 476 MB, free: 9.348 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.537e-05/0.08957, allocations: 104 kB / 476.1 MB, free: 9.242 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.974e-05/0.08959, allocations: 15.8 kB / 476.2 MB, free: 9.227 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.912e-05/0.08963, allocations: 21.7 kB / 476.2 MB, free: 9.199 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.378e-05/0.08972, allocations: 318.8 kB / 476.5 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.795e-05/0.08976, allocations: 23.98 kB / 476.5 MB, free: 8.855 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.442e-05/0.08981, allocations: 38.56 kB / 476.5 MB, free: 8.809 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.77e-05/0.08988, allocations: 50.52 kB / 476.6 MB, free: 8.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.08989, allocations: 0 / 476.6 MB, free: 8.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001252/0.09002, allocations: 81.53 kB / 476.7 MB, free: 8.664 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.09004, allocations: 16 kB / 476.7 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.09005, allocations: 4.328 kB / 476.7 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.013e-05/0.09007, allocations: 0 / 476.7 MB, free: 8.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.675e-05/0.09013, allocations: 12 kB / 476.7 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.09014, allocations: 3.984 kB / 476.7 MB, free: 8.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.266e-05/0.09021, allocations: 11.94 kB / 476.7 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.32e-06/0.09022, allocations: 0 / 476.7 MB, free: 8.617 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 7.468e-05/0.0903, allocations: 124 kB / 476.8 MB, free: 8.488 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.462e-05/0.09032, allocations: 11.91 kB / 476.9 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.421e-05/0.09036, allocations: 24.62 kB / 476.9 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.09037, allocations: 4 kB / 476.9 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.09038, allocations: 4 kB / 476.9 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.09038, allocations: 0 / 476.9 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002761/0.09066, allocations: 350.3 kB / 477.2 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.09068, allocations: 0 / 477.2 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.257e-05/0.09072, allocations: 4 kB / 477.2 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.09073, allocations: 0 / 477.2 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.09075, allocations: 12 kB / 477.2 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.09076, allocations: 0 / 477.2 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.09076, allocations: 0 / 477.2 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001782/0.09094, allocations: 187.4 kB / 477.4 MB, free: 7.832 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.075e-05/0.09099, allocations: 89.03 kB / 477.5 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.584e-05/0.09101, allocations: 0 / 477.5 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.694e-05/0.09111, allocations: 8 kB / 477.5 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.11e-05/0.09116, allocations: 19.98 kB / 477.5 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-06/0.09117, allocations: 0 / 477.5 MB, free: 7.699 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.874e-05/0.09123, allocations: 109.4 kB / 477.7 MB, free: 7.594 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.09123, allocations: 192 / 477.7 MB, free: 7.594 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002163/0.09145, allocations: 12 kB / 477.7 MB, free: 7.582 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 (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.0004061/0.09187, allocations: 0.7245 MB / 478.4 MB, free: 6.832 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000111/0.09199, allocations: 47.98 kB / 478.4 MB, free: 6.785 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.092, allocations: 0 / 478.4 MB, free: 6.785 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.693e-05/0.09205, allocations: 27.94 kB / 478.5 MB, free: 6.758 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002787/0.09233, allocations: 15.98 kB / 478.5 MB, free: 6.742 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00144/0.09378, allocations: 1.55 MB / 480 MB, free: 5.102 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002227/0.09402, allocations: 0.7004 MB / 480.7 MB, free: 4.375 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.677e-05/0.09408, allocations: 8.375 kB / 480.7 MB, free: 4.367 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.389e-05/0.09414, allocations: 27.42 kB / 480.8 MB, free: 4.34 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.09415, allocations: 0 / 480.8 MB, free: 4.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04324/0.1374, allocations: 1.93 MB / 482.7 MB, free: 2.52 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002019/0.1376, allocations: 197 kB / 482.9 MB, free: 2.262 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.623/1.761, allocations: 3.625 kB / 482.9 MB, free: 2.262 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/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) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches