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: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 105.4 kB / 18.4 MB, free: 4.57 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.001298/0.001298, allocations: 188 kB / 19.34 MB, free: 3.641 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.309/1.309, allocations: 222.9 MB / 243 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2002/0.2002, allocations: 44.18 MB / 337.4 MB, free: 2.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 65.62 kB / 409.9 MB, free: 26.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09165/0.0929, allocations: 60.83 MB / 470.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002661/0.0956, allocations: 1.608 MB / 472.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007153/0.09633, allocations: 482.7 kB / 472.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.723e-05/0.09641, allocations: 4 kB / 472.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.928e-05/0.09652, allocations: 23.8 kB / 472.8 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.003e-05/0.09657, allocations: 7.875 kB / 472.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001591/0.09674, allocations: 31.91 kB / 472.9 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00013/0.09688, allocations: 79.81 kB / 472.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.09699, allocations: 32.16 kB / 473 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.428e-05/0.09705, allocations: 27.86 kB / 473 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.15e-05/0.09712, allocations: 35.84 kB / 473 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.764e-05/0.09714, allocations: 8 kB / 473 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.301e-05/0.09716, allocations: 4 kB / 473 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.643e-05/0.09719, allocations: 19.92 kB / 473.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.261e-05/0.09724, allocations: 31.8 kB / 473.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001174/0.09736, allocations: 83.59 kB / 473.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.09737, allocations: 0 / 473.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.09738, allocations: 0 / 473.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.09739, allocations: 0 / 473.2 MB, free: 11.17 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.0005033/0.0979, allocations: 395.2 kB / 473.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.994e-05/0.09794, allocations: 12.03 kB / 473.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.602e-05/0.09798, allocations: 8.844 kB / 473.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002043/0.09819, allocations: 196.1 kB / 473.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.09821, allocations: 4.375 kB / 473.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.218e-05/0.09824, allocations: 8.375 kB / 473.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000135/0.09838, allocations: 84.58 kB / 473.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/0.09839, allocations: 0 / 473.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/0.09841, allocations: 8 kB / 473.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.09842, allocations: 7.984 kB / 473.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.259e-05/0.09851, allocations: 39.92 kB / 473.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000512/0.09903, allocations: 348.4 kB / 474.3 MB, free: 9.945 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.478e-05/0.09914, allocations: 46.58 kB / 474.3 MB, free: 9.891 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.184e-05/0.09918, allocations: 20.92 kB / 474.3 MB, free: 9.867 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.097e-05/0.0992, allocations: 4 kB / 474.3 MB, free: 9.863 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001194/0.09932, allocations: 75.31 kB / 474.4 MB, free: 9.777 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.09933, allocations: 0 / 474.4 MB, free: 9.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0001914/0.09953, allocations: 81.53 kB / 474.5 MB, free: 9.691 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.524e-05/0.09957, allocations: 51.41 kB / 474.5 MB, free: 9.629 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/0.09969, allocations: 145.7 kB / 474.7 MB, free: 9.477 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.798e-05/0.09971, allocations: 29.7 kB / 474.7 MB, free: 9.441 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.827e-05/0.09978, allocations: 104.1 kB / 474.8 MB, free: 9.336 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.151e-05/0.09981, allocations: 19.78 kB / 474.8 MB, free: 9.316 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.281e-05/0.09985, allocations: 25.66 kB / 474.8 MB, free: 9.285 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.814e-05/0.09996, allocations: 322.8 kB / 475.2 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.201e-05/0.1, allocations: 19.98 kB / 475.2 MB, free: 8.941 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.483e-05/0.1001, allocations: 30.58 kB / 475.2 MB, free: 8.902 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.154e-05/0.1001, allocations: 62.5 kB / 475.3 MB, free: 8.832 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1001, allocations: 0 / 475.3 MB, free: 8.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001277/0.1003, allocations: 81.53 kB / 475.3 MB, free: 8.746 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.1003, allocations: 8 kB / 475.4 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.1003, allocations: 0 / 475.4 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.1003, allocations: 3.938 kB / 475.4 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.139e-05/0.1004, allocations: 8 kB / 475.4 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.1004, allocations: 0 / 475.4 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.722e-05/0.1005, allocations: 23.89 kB / 475.4 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.375e-06/0.1005, allocations: 4 kB / 475.4 MB, free: 8.699 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 8.405e-05/0.1006, allocations: 121.7 kB / 475.5 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.571e-05/0.1006, allocations: 7.906 kB / 475.5 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.529e-05/0.1006, allocations: 20.64 kB / 475.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.1007, allocations: 0 / 475.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/0.1007, allocations: 0 / 475.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.1007, allocations: 0 / 475.5 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003263/0.101, allocations: 350.9 kB / 475.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.101, allocations: 0 / 475.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.884e-05/0.1011, allocations: 4 kB / 475.9 MB, free: 8.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.1011, allocations: 3.938 kB / 475.9 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.1011, allocations: 192 / 475.9 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.1011, allocations: 0 / 475.9 MB, free: 8.137 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.1011, allocations: 3.938 kB / 475.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001995/0.1013, allocations: 195.4 kB / 476.1 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.03e-05/0.1014, allocations: 89.11 kB / 476.2 MB, free: 7.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.961e-05/0.1014, allocations: 11.98 kB / 476.2 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.132e-05/0.1015, allocations: 4 kB / 476.2 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.789e-05/0.1015, allocations: 7.984 kB / 476.2 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.74e-06/0.1015, allocations: 0 / 476.2 MB, free: 7.797 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.982e-05/0.1016, allocations: 109.5 kB / 476.3 MB, free: 7.691 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1016, allocations: 0 / 476.3 MB, free: 7.691 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002379/0.1019, allocations: 15.91 kB / 476.3 MB, free: 7.676 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 7.682e-05/0.102, allocations: 103.2 kB / 476.4 MB, free: 7.566 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001249/0.1021, allocations: 47.97 kB / 476.5 MB, free: 7.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1021, allocations: 0 / 476.5 MB, free: 7.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.903e-05/0.1021, allocations: 23.94 kB / 476.5 MB, free: 7.496 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002971/0.1025, allocations: 23.91 kB / 476.5 MB, free: 7.473 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004662/0.1029, allocations: 219.5 kB / 476.7 MB, free: 7.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002379/0.1032, allocations: 0.7003 MB / 477.4 MB, free: 6.504 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.217e-05/0.1032, allocations: 4.438 kB / 477.4 MB, free: 6.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.996e-05/0.1033, allocations: 11.44 kB / 477.4 MB, free: 6.488 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1033, allocations: 3.938 kB / 477.4 MB, free: 6.484 MB / 350.1 MB Notification: Performance of Templates: time 0.003015/0.1063, allocations: 0.9406 MB / 478.4 MB, free: 5.551 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > 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