Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001095/0.001095, allocations: 172.3 kB / 16.08 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.227/1.227, allocations: 205.6 MB / 222.4 MB, free: 8.934 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009779/0.000978, allocations: 94.97 kB / 270.8 MB, free: 8.129 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2874/0.2874, allocations: 43.67 MB / 362.7 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003906/0.0003908, allocations: 11.98 kB / 432.3 MB, free: 5.043 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0974/0.09781, allocations: 58.84 MB / 491.2 MB, free: 10.07 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.00152/0.09937, allocations: 1.307 MB / 492.5 MB, free: 8.75 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007099/0.1001, allocations: 0.492 MB / 493 MB, free: 8.25 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.948e-05/0.1002, allocations: 0 / 493 MB, free: 8.25 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.662e-05/0.1003, allocations: 11.92 kB / 493 MB, free: 8.238 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.07e-05/0.1003, allocations: 7.922 kB / 493 MB, free: 8.23 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001533/0.1005, allocations: 35.92 kB / 493 MB, free: 8.195 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001126/0.1006, allocations: 75.77 kB / 493.1 MB, free: 8.121 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.885e-05/0.1007, allocations: 32.47 kB / 493.1 MB, free: 8.09 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.813e-05/0.1008, allocations: 19.92 kB / 493.1 MB, free: 8.07 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.992e-05/0.1008, allocations: 35.72 kB / 493.2 MB, free: 8.035 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.575e-05/0.1009, allocations: 4 kB / 493.2 MB, free: 8.031 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.045e-05/0.1009, allocations: 0 / 493.2 MB, free: 8.031 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.021e-05/0.1009, allocations: 15.94 kB / 493.2 MB, free: 8.016 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.802e-05/0.101, allocations: 53.5 kB / 493.2 MB, free: 7.957 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 9.021e-05/0.1011, allocations: 67.7 kB / 493.3 MB, free: 7.891 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1011, allocations: 3.938 kB / 493.3 MB, free: 7.887 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.1011, allocations: 0 / 493.3 MB, free: 7.887 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.772e-06/0.1011, allocations: 0 / 493.3 MB, free: 7.887 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.0004885/0.1016, allocations: 379.2 kB / 493.7 MB, free: 7.469 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.007e-05/0.1016, allocations: 12.03 kB / 493.7 MB, free: 7.457 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.291e-05/0.1017, allocations: 8.844 kB / 493.7 MB, free: 7.449 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001699/0.1018, allocations: 196.1 kB / 493.9 MB, free: 7.219 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.62e-05/0.1019, allocations: 4.375 kB / 493.9 MB, free: 7.215 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.329e-05/0.1019, allocations: 8.375 kB / 493.9 MB, free: 7.207 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001306/0.102, allocations: 81.86 kB / 494 MB, free: 7.121 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.864e-06/0.102, allocations: 3.984 kB / 494 MB, free: 7.117 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/0.1021, allocations: 3.984 kB / 494 MB, free: 7.113 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.311e-06/0.1021, allocations: 4 kB / 494 MB, free: 7.109 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.22e-05/0.1021, allocations: 35.98 kB / 494 MB, free: 7.074 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004904/0.1026, allocations: 360.6 kB / 494.4 MB, free: 6.672 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.282e-05/0.1028, allocations: 42.58 kB / 494.4 MB, free: 6.621 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.295e-05/0.1028, allocations: 28.86 kB / 494.5 MB, free: 6.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.839e-06/0.1028, allocations: 0 / 494.5 MB, free: 6.59 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001265/0.1029, allocations: 63.39 kB / 494.5 MB, free: 6.516 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.103, allocations: 0 / 494.5 MB, free: 6.516 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001817/0.1031, allocations: 89.52 kB / 494.6 MB, free: 6.422 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/0.1032, allocations: 55.34 kB / 494.7 MB, free: 6.355 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.416e-05/0.1033, allocations: 141.8 kB / 494.8 MB, free: 6.207 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.491e-05/0.1033, allocations: 29.7 kB / 494.8 MB, free: 6.172 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.37e-05/0.1034, allocations: 96.05 kB / 494.9 MB, free: 6.074 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.112e-05/0.1034, allocations: 19.8 kB / 494.9 MB, free: 6.055 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.706e-06/0.1034, allocations: 0 / 494.9 MB, free: 6.055 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.112e-05/0.1035, allocations: 322.8 kB / 495.3 MB, free: 5.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.541e-05/0.1035, allocations: 16 kB / 495.3 MB, free: 5.715 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.62e-05/0.1036, allocations: 34.56 kB / 495.3 MB, free: 5.672 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.855e-05/0.1036, allocations: 54.81 kB / 495.4 MB, free: 5.609 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.1037, allocations: 0 / 495.4 MB, free: 5.609 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001209/0.1038, allocations: 89.52 kB / 495.4 MB, free: 5.516 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.1038, allocations: 8 kB / 495.5 MB, free: 5.508 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.1038, allocations: 0 / 495.5 MB, free: 5.508 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.1038, allocations: 3.938 kB / 495.5 MB, free: 5.504 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.747e-05/0.1039, allocations: 12.17 kB / 495.5 MB, free: 5.492 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.1039, allocations: 4.062 kB / 495.5 MB, free: 5.488 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.894e-05/0.104, allocations: 19.78 kB / 495.5 MB, free: 5.469 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.346e-06/0.104, allocations: 8 kB / 495.5 MB, free: 5.461 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 7.141e-05/0.1041, allocations: 121.8 kB / 495.6 MB, free: 5.332 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.36e-05/0.1041, allocations: 7.906 kB / 495.6 MB, free: 5.324 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.914e-05/0.1041, allocations: 12.66 kB / 495.6 MB, free: 5.312 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.1041, allocations: 7.984 kB / 495.6 MB, free: 5.305 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.1041, allocations: 3.938 kB / 495.6 MB, free: 5.301 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.1042, allocations: 4 kB / 495.7 MB, free: 5.297 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002812/0.1044, allocations: 338.5 kB / 496 MB, free: 4.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.1045, allocations: 4 kB / 496 MB, free: 4.906 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.57e-05/0.1045, allocations: 7.938 kB / 496 MB, free: 4.898 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.1045, allocations: 4 kB / 496 MB, free: 4.895 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.518e-06/0.1045, allocations: 3.984 kB / 496 MB, free: 4.891 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-06/0.1045, allocations: 0 / 496 MB, free: 4.891 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1045, allocations: 0 / 496 MB, free: 4.891 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000182/0.1047, allocations: 195.4 kB / 496.2 MB, free: 4.684 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.514e-05/0.1048, allocations: 85.05 kB / 496.3 MB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.782e-05/0.1048, allocations: 4 kB / 496.3 MB, free: 4.578 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.007e-05/0.1049, allocations: 11.98 kB / 496.3 MB, free: 4.566 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.79e-05/0.1049, allocations: 4 kB / 496.3 MB, free: 4.562 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.662e-06/0.1049, allocations: 3.984 kB / 496.3 MB, free: 4.559 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.876e-05/0.105, allocations: 103.9 kB / 496.4 MB, free: 4.457 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.105, allocations: 0 / 496.4 MB, free: 4.457 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002066/0.1052, allocations: 23.97 kB / 496.4 MB, free: 4.434 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.758e-05/0.1053, allocations: 107.1 kB / 496.5 MB, free: 4.316 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001127/0.1055, allocations: 43.98 kB / 496.6 MB, free: 4.273 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1055, allocations: 0 / 496.6 MB, free: 4.273 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.75e-05/0.1055, allocations: 23.92 kB / 496.6 MB, free: 4.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002681/0.1058, allocations: 19.92 kB / 496.6 MB, free: 4.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004481/0.1062, allocations: 252.7 kB / 496.9 MB, free: 3.961 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001899/0.1065, allocations: 0.6965 MB / 497.6 MB, free: 3.238 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 3.513e-05/0.1065, allocations: 12.36 kB / 497.6 MB, free: 3.227 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.695e-05/0.1065, allocations: 11.44 kB / 497.6 MB, free: 3.215 MB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.1065, allocations: 0 / 497.6 MB, free: 3.215 MB / 378.7 MB Notification: Performance of Templates: time 0.002526/0.1091, allocations: 0.8316 MB / 498.4 MB, free: 2.387 MB / 378.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/jenkins/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