Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 174.2 kB / 17.41 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.353/1.353, allocations: 225.7 MB / 243.9 MB, free: 8.453 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008046/0.0008046, allocations: 93.05 kB / 295 MB, free: 9.492 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3806/0.3806, allocations: 44.32 MB / 390.5 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003322/0.0003324, allocations: 8 kB / 463.1 MB, free: 468 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3042/0.3046, allocations: 61.89 MB / 0.5127 GB, free: 37.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.001859/0.3065, allocations: 1.303 MB / 0.514 GB, free: 36.97 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008577/0.3074, allocations: 463.7 kB / 0.5144 GB, free: 36.65 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001361/0.3075, allocations: 0 / 0.5144 GB, free: 36.65 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001514/0.3077, allocations: 10.28 kB / 0.5144 GB, free: 36.64 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.003e-05/0.3078, allocations: 11.88 kB / 0.5145 GB, free: 36.63 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002252/0.308, allocations: 35 kB / 0.5145 GB, free: 36.61 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001585/0.3082, allocations: 70.72 kB / 0.5146 GB, free: 36.58 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001643/0.3083, allocations: 31.02 kB / 0.5146 GB, free: 36.57 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.108e-05/0.3084, allocations: 27.89 kB / 0.5146 GB, free: 36.55 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.683e-05/0.3085, allocations: 28.78 kB / 0.5146 GB, free: 36.54 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.319e-05/0.3085, allocations: 3.031 kB / 0.5146 GB, free: 36.54 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.563e-05/0.3085, allocations: 3.031 kB / 0.5146 GB, free: 36.54 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.644e-05/0.3086, allocations: 11 kB / 0.5147 GB, free: 36.53 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.784e-05/0.3086, allocations: 55.48 kB / 0.5147 GB, free: 36.48 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001102/0.3087, allocations: 64.58 kB / 0.5148 GB, free: 36.45 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.3088, allocations: 0 / 0.5148 GB, free: 36.45 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3088, allocations: 0 / 0.5148 GB, free: 36.45 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.3088, allocations: 2.875 kB / 0.5148 GB, free: 36.45 MB / 378.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.0005424/0.3093, allocations: 375.8 kB / 0.5151 GB, free: 36.08 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.3094, allocations: 12.53 kB / 0.5151 GB, free: 36.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.085e-05/0.3094, allocations: 15.97 kB / 0.5152 GB, free: 36.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001588/0.3096, allocations: 198.7 kB / 0.5154 GB, free: 35.85 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.767e-05/0.3096, allocations: 3.031 kB / 0.5154 GB, free: 35.85 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.141e-05/0.3096, allocations: 9.906 kB / 0.5154 GB, free: 35.84 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001329/0.3098, allocations: 79.06 kB / 0.5154 GB, free: 35.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.3098, allocations: 0 / 0.5154 GB, free: 35.79 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.3098, allocations: 0 / 0.5154 GB, free: 35.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/0.3098, allocations: 3.094 kB / 0.5154 GB, free: 35.79 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.004e-05/0.3099, allocations: 40.17 kB / 0.5155 GB, free: 35.78 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005183/0.3104, allocations: 358.3 kB / 0.5158 GB, free: 35.46 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.821e-05/0.3105, allocations: 47.72 kB / 0.5159 GB, free: 35.43 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.092e-05/0.3106, allocations: 18.22 kB / 0.5159 GB, free: 35.42 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.376e-06/0.3106, allocations: 0 / 0.5159 GB, free: 35.42 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001699/0.3108, allocations: 68.53 kB / 0.516 GB, free: 35.36 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.3108, allocations: 0 / 0.516 GB, free: 35.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002405/0.311, allocations: 94.64 kB / 0.516 GB, free: 35.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.863e-05/0.3111, allocations: 51.41 kB / 0.5161 GB, free: 35.24 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001016/0.3112, allocations: 139.6 kB / 0.5162 GB, free: 35.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.312e-05/0.3112, allocations: 32.52 kB / 0.5163 GB, free: 35.09 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.419e-05/0.3112, allocations: 98.81 kB / 0.5163 GB, free: 34.99 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.385e-05/0.3113, allocations: 26.44 kB / 0.5164 GB, free: 34.97 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.598e-06/0.3113, allocations: 0 / 0.5164 GB, free: 34.97 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.507e-05/0.3114, allocations: 320.7 kB / 0.5167 GB, free: 34.66 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.065e-05/0.3114, allocations: 11.59 kB / 0.5167 GB, free: 34.65 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.144e-05/0.3115, allocations: 37.94 kB / 0.5167 GB, free: 34.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.592e-05/0.3115, allocations: 61.23 kB / 0.5168 GB, free: 34.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.3116, allocations: 0 / 0.5168 GB, free: 34.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001079/0.3117, allocations: 89.97 kB / 0.5169 GB, free: 34.52 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.3117, allocations: 5.531 kB / 0.5169 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.3117, allocations: 4 kB / 0.5169 GB, free: 34.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.3117, allocations: 3.938 kB / 0.5169 GB, free: 34.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.806e-05/0.3118, allocations: 16.16 kB / 0.5169 GB, free: 34.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.221e-06/0.3118, allocations: 3.281 kB / 0.5169 GB, free: 34.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.23e-05/0.3119, allocations: 12.09 kB / 0.5169 GB, free: 34.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.3119, allocations: 2.625 kB / 0.5169 GB, free: 34.5 MB / 378.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,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.156e-05/0.3119, allocations: 118.9 kB / 0.517 GB, free: 34.38 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.326e-05/0.312, allocations: 14.73 kB / 0.517 GB, free: 34.37 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.073e-05/0.312, allocations: 15.59 kB / 0.5171 GB, free: 34.36 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.312, allocations: 0 / 0.5171 GB, free: 34.36 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.312, allocations: 3.938 kB / 0.5171 GB, free: 34.35 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.312, allocations: 2.812 kB / 0.5171 GB, free: 34.35 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002342/0.3123, allocations: 350.7 kB / 0.5174 GB, free: 34.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.3123, allocations: 0 / 0.5174 GB, free: 34.02 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.483e-05/0.3123, allocations: 7 kB / 0.5174 GB, free: 34.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.3123, allocations: 0 / 0.5174 GB, free: 34.02 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.725e-06/0.3123, allocations: 0 / 0.5174 GB, free: 34.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.3124, allocations: 2.938 kB / 0.5174 GB, free: 34.02 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.3124, allocations: 0 / 0.5174 GB, free: 34.02 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001549/0.3125, allocations: 197.4 kB / 0.5176 GB, free: 33.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.26e-05/0.3125, allocations: 87.89 kB / 0.5177 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.787e-05/0.3126, allocations: 2.375 kB / 0.5177 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.375e-05/0.3127, allocations: 9.562 kB / 0.5177 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.208e-05/0.3127, allocations: 10.03 kB / 0.5177 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-06/0.3127, allocations: 2.938 kB / 0.5177 GB, free: 33.75 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.369e-05/0.3128, allocations: 105.1 kB / 0.5178 GB, free: 33.66 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3128, allocations: 0 / 0.5178 GB, free: 33.66 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002055/0.313, allocations: 15.62 kB / 0.5178 GB, free: 33.66 MB / 378.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 (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 9.176e-05/0.3131, allocations: 109.8 kB / 0.5179 GB, free: 33.56 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001136/0.3132, allocations: 42.17 kB / 0.518 GB, free: 33.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.3132, allocations: 0 / 0.518 GB, free: 33.55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.283e-05/0.3133, allocations: 24.73 kB / 0.518 GB, free: 33.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00028/0.3135, allocations: 22.95 kB / 0.518 GB, free: 33.53 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004613/0.314, allocations: 251.2 kB / 0.5183 GB, free: 33.35 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001099/0.3141, allocations: 0.6947 MB / 0.5189 GB, free: 32.65 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 3.332e-05/0.3142, allocations: 10.38 kB / 0.5189 GB, free: 32.64 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.634e-05/0.3142, allocations: 13.47 kB / 0.519 GB, free: 32.64 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3142, allocations: 0 / 0.519 GB, free: 32.64 MB / 378.7 MB Notification: Performance of Templates: time 0.002942/0.3172, allocations: 0.8346 MB / 0.5198 GB, free: 32.55 MB / 378.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches