Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001134/0.001134, allocations: 176.2 kB / 16.76 MB, free: 5.047 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.623/1.623, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008371/0.0008371, allocations: 82.42 kB / 271.3 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.412/0.412, allocations: 43.56 MB / 363.1 MB, free: 51.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003872/0.0003874, allocations: 20 kB / 432.6 MB, free: 4.977 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1278, allocations: 58.84 MB / 491.5 MB, free: 10.05 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3705/0.4983, allocations: 86.17 MB / 0.5641 GB, free: 15.71 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000173/0.4986, allocations: 59.97 kB / 0.5641 GB, free: 15.65 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004255/0.5028, allocations: 1.667 MB / 0.5658 GB, free: 14 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.5029, allocations: 0 / 0.5658 GB, free: 14 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.077e-06/0.5029, allocations: 0 / 0.5658 GB, free: 14 MB / 394.7 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.0004345/0.5033, allocations: 378.9 kB / 0.5661 GB, free: 13.59 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.5034, allocations: 12.8 kB / 0.5661 GB, free: 13.57 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.768e-05/0.5034, allocations: 8.844 kB / 0.5661 GB, free: 13.57 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00018/0.5036, allocations: 201.1 kB / 0.5663 GB, free: 13.33 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.83e-05/0.5036, allocations: 8.375 kB / 0.5663 GB, free: 13.32 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.236e-05/0.5037, allocations: 14.89 kB / 0.5664 GB, free: 13.32 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001372/0.5038, allocations: 71.08 kB / 0.5664 GB, free: 13.24 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.5038, allocations: 192 / 0.5664 GB, free: 13.24 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.729e-05/0.5038, allocations: 7.938 kB / 0.5664 GB, free: 13.23 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.5038, allocations: 0.875 kB / 0.5664 GB, free: 13.23 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.096e-05/0.5039, allocations: 39.86 kB / 0.5665 GB, free: 13.2 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005488/0.5045, allocations: 352.7 kB / 0.5668 GB, free: 12.8 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001099/0.5046, allocations: 46.5 kB / 0.5669 GB, free: 12.75 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.675e-05/0.5047, allocations: 20.89 kB / 0.5669 GB, free: 12.72 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.428e-06/0.5047, allocations: 0 / 0.5669 GB, free: 12.72 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001801/0.5049, allocations: 71.34 kB / 0.5669 GB, free: 12.64 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 1.383e-06/0.5049, allocations: 0 / 0.5669 GB, free: 12.64 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002232/0.5051, allocations: 89.5 kB / 0.567 GB, free: 12.55 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.887e-05/0.5051, allocations: 55.34 kB / 0.5671 GB, free: 12.48 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001197/0.5053, allocations: 137.8 kB / 0.5672 GB, free: 12.34 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.309e-05/0.5053, allocations: 29.7 kB / 0.5672 GB, free: 12.3 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.638e-05/0.5054, allocations: 105.5 kB / 0.5673 GB, free: 12.2 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.329e-05/0.5054, allocations: 15.89 kB / 0.5674 GB, free: 12.18 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-06/0.5054, allocations: 0 / 0.5674 GB, free: 12.18 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.5055, allocations: 322.8 kB / 0.5677 GB, free: 11.86 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.793e-05/0.5056, allocations: 16 kB / 0.5677 GB, free: 11.84 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.356e-05/0.5056, allocations: 38.56 kB / 0.5677 GB, free: 11.79 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.165e-05/0.5057, allocations: 52 kB / 0.5678 GB, free: 11.73 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.5057, allocations: 0 / 0.5678 GB, free: 11.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001287/0.5059, allocations: 93.5 kB / 0.5679 GB, free: 11.64 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.5059, allocations: 4 kB / 0.5679 GB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.5059, allocations: 1.609 kB / 0.5679 GB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.5059, allocations: 4 kB / 0.5679 GB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.864e-05/0.506, allocations: 11.88 kB / 0.5679 GB, free: 11.62 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.853e-06/0.506, allocations: 4 kB / 0.5679 GB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.492e-05/0.5061, allocations: 16.05 kB / 0.5679 GB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.796e-06/0.5061, allocations: 8.219 kB / 0.5679 GB, free: 11.59 MB / 394.7 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,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,fallingEdge.y,$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 8.562e-05/0.5062, allocations: 116.6 kB / 0.568 GB, free: 11.47 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.543e-05/0.5062, allocations: 7.906 kB / 0.568 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.838e-05/0.5062, allocations: 12.72 kB / 0.568 GB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.5063, allocations: 7.922 kB / 0.568 GB, free: 11.45 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.5063, allocations: 1.75 kB / 0.568 GB, free: 11.45 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/0.5063, allocations: 3.984 kB / 0.568 GB, free: 11.45 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003483/0.5066, allocations: 354.4 kB / 0.5684 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.5066, allocations: 3.984 kB / 0.5684 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.777e-05/0.5067, allocations: 8.125 kB / 0.5684 GB, free: 11.03 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.5067, allocations: 0 / 0.5684 GB, free: 11.03 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.116e-06/0.5067, allocations: 3.938 kB / 0.5684 GB, free: 11.03 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.5067, allocations: 0 / 0.5684 GB, free: 11.03 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.5067, allocations: 0 / 0.5684 GB, free: 11.03 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002014/0.5069, allocations: 195.4 kB / 0.5686 GB, free: 10.82 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.689e-05/0.507, allocations: 88.95 kB / 0.5687 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.712e-05/0.507, allocations: 0 / 0.5687 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.483e-05/0.5071, allocations: 12.02 kB / 0.5687 GB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.283e-05/0.5072, allocations: 11.8 kB / 0.5687 GB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.139e-06/0.5072, allocations: 0 / 0.5687 GB, free: 10.7 MB / 394.7 MB Notification: Performance of sorting global known variables: time 6.37e-05/0.5072, allocations: 107.3 kB / 0.5688 GB, free: 10.59 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5072, allocations: 0 / 0.5688 GB, free: 10.59 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002191/0.5075, allocations: 20.06 kB / 0.5688 GB, free: 10.57 MB / 394.7 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 (fallingEdge.y,$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.0001125/0.5076, allocations: 103.2 kB / 0.5689 GB, free: 10.46 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001205/0.5077, allocations: 47.92 kB / 0.569 GB, free: 10.41 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.5077, allocations: 0 / 0.569 GB, free: 10.41 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.683e-05/0.5078, allocations: 19.98 kB / 0.569 GB, free: 10.39 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002845/0.5081, allocations: 23.44 kB / 0.569 GB, free: 10.38 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005118/0.5086, allocations: 249.3 kB / 0.5692 GB, free: 10.11 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002846/0.5089, allocations: 0.7043 MB / 0.5699 GB, free: 9.383 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 3.588e-05/0.5089, allocations: 8.422 kB / 0.5699 GB, free: 9.375 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.292e-05/0.509, allocations: 11.44 kB / 0.5699 GB, free: 9.367 MB / 394.7 MB Notification: Performance of SimCode: time 2.41e-07/0.509, allocations: 0 / 0.5699 GB, free: 9.367 MB / 394.7 MB Notification: Performance of Templates: time 0.002899/0.5119, allocations: 0.8039 MB / 0.5707 GB, free: 8.57 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches