Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009548/0.000955, allocations: 174.2 kB / 17.41 MB, free: 4.41 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.306/1.306, allocations: 225.7 MB / 243.9 MB, free: 8.445 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.0008165/0.0008169, allocations: 92.09 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.3275/0.3275, allocations: 44.33 MB / 390.5 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003513/0.0003516, allocations: 8 kB / 463.1 MB, free: 496 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3425/0.3428, allocations: 61.9 MB / 0.5127 GB, free: 37.84 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.0009511/0.3438, allocations: 0.5242 MB / 0.5132 GB, free: 37.49 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001759/0.344, allocations: 43.31 kB / 0.5133 GB, free: 37.46 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.674e-05/0.3441, allocations: 3.938 kB / 0.5133 GB, free: 37.46 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001082/0.3442, allocations: 0 / 0.5133 GB, free: 37.46 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 1.798e-05/0.3442, allocations: 3.938 kB / 0.5133 GB, free: 37.46 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001077/0.3444, allocations: 16.69 kB / 0.5133 GB, free: 37.45 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 9.566e-05/0.3445, allocations: 33.41 kB / 0.5133 GB, free: 37.43 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001023/0.3446, allocations: 25.53 kB / 0.5134 GB, free: 37.42 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.403e-05/0.3446, allocations: 9.531 kB / 0.5134 GB, free: 37.42 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.422e-05/0.3447, allocations: 15.34 kB / 0.5134 GB, free: 37.41 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.57e-05/0.3447, allocations: 2.719 kB / 0.5134 GB, free: 37.41 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.024e-05/0.3447, allocations: 0 / 0.5134 GB, free: 37.41 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.991e-05/0.3447, allocations: 2.938 kB / 0.5134 GB, free: 37.41 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.5e-05/0.3448, allocations: 46.86 kB / 0.5134 GB, free: 37.36 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 8.09e-05/0.3449, allocations: 27.33 kB / 0.5135 GB, free: 37.35 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3449, allocations: 2.906 kB / 0.5135 GB, free: 37.35 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3449, allocations: 0 / 0.5135 GB, free: 37.35 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.325e-06/0.3449, allocations: 0 / 0.5135 GB, free: 37.35 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000361/0.3453, allocations: 347.8 kB / 0.5138 GB, free: 36.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.3453, allocations: 8.469 kB / 0.5138 GB, free: 36.98 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.919e-05/0.3453, allocations: 7.594 kB / 0.5138 GB, free: 36.98 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001466/0.3455, allocations: 180 kB / 0.514 GB, free: 36.77 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.131e-05/0.3455, allocations: 7.375 kB / 0.514 GB, free: 36.77 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.099e-05/0.3455, allocations: 2.969 kB / 0.514 GB, free: 36.77 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001102/0.3457, allocations: 53.83 kB / 0.514 GB, free: 36.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.3457, allocations: 192 / 0.514 GB, free: 36.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.3457, allocations: 3.938 kB / 0.5141 GB, free: 36.72 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.3457, allocations: 0 / 0.5141 GB, free: 36.72 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.53e-05/0.3458, allocations: 16.56 kB / 0.5141 GB, free: 36.72 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004367/0.3462, allocations: 294.4 kB / 0.5143 GB, free: 36.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.819e-05/0.3463, allocations: 25.02 kB / 0.5144 GB, free: 36.4 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.627e-05/0.3463, allocations: 11.77 kB / 0.5144 GB, free: 36.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.977e-06/0.3463, allocations: 0 / 0.5144 GB, free: 36.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001331/0.3464, allocations: 56.66 kB / 0.5144 GB, free: 36.33 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.3464, allocations: 0 / 0.5144 GB, free: 36.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001279/0.3466, allocations: 52.47 kB / 0.5145 GB, free: 36.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.402e-05/0.3466, allocations: 51.41 kB / 0.5145 GB, free: 36.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.038e-05/0.3467, allocations: 122.8 kB / 0.5147 GB, free: 36.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.919e-06/0.3467, allocations: 25.7 kB / 0.5147 GB, free: 36.09 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.857e-05/0.3468, allocations: 95.08 kB / 0.5148 GB, free: 35.99 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.237e-05/0.3468, allocations: 11.84 kB / 0.5148 GB, free: 35.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.865e-06/0.3468, allocations: 0 / 0.5148 GB, free: 35.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.192e-05/0.3468, allocations: 325.5 kB / 0.5151 GB, free: 35.66 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.439e-05/0.3469, allocations: 7.938 kB / 0.5151 GB, free: 35.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.849e-05/0.3469, allocations: 16.78 kB / 0.5151 GB, free: 35.64 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.269e-05/0.3469, allocations: 25.95 kB / 0.5151 GB, free: 35.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3469, allocations: 0 / 0.5151 GB, free: 35.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.119e-05/0.347, allocations: 54.78 kB / 0.5152 GB, free: 35.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.347, allocations: 10.06 kB / 0.5152 GB, free: 35.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.93e-06/0.347, allocations: 0 / 0.5152 GB, free: 35.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.347, allocations: 7.031 kB / 0.5152 GB, free: 35.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.014e-05/0.3471, allocations: 2.969 kB / 0.5152 GB, free: 35.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.241e-06/0.3471, allocations: 0 / 0.5152 GB, free: 35.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.712e-05/0.3471, allocations: 3.031 kB / 0.5152 GB, free: 35.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.312e-06/0.3471, allocations: 7.938 kB / 0.5152 GB, free: 35.56 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,greaterEqualThreshold.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 5.777e-05/0.3472, allocations: 112.7 kB / 0.5153 GB, free: 35.45 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.508e-06/0.3472, allocations: 2.969 kB / 0.5153 GB, free: 35.45 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.053e-05/0.3472, allocations: 15.84 kB / 0.5153 GB, free: 35.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-06/0.3472, allocations: 2.812 kB / 0.5153 GB, free: 35.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.3472, allocations: 0 / 0.5153 GB, free: 35.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.3473, allocations: 4 kB / 0.5154 GB, free: 35.42 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001967/0.3475, allocations: 299.1 kB / 0.5156 GB, free: 35.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.3475, allocations: 0 / 0.5156 GB, free: 35.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.782e-05/0.3475, allocations: 4.016 kB / 0.5156 GB, free: 35.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.3475, allocations: 0 / 0.5156 GB, free: 35.11 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.567e-06/0.3475, allocations: 2.938 kB / 0.5156 GB, free: 35.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.3475, allocations: 12.62 kB / 0.5157 GB, free: 35.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.3475, allocations: 3.938 kB / 0.5157 GB, free: 35.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001024/0.3476, allocations: 145.7 kB / 0.5158 GB, free: 34.96 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.191e-05/0.3477, allocations: 82.33 kB / 0.5159 GB, free: 34.86 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.33e-05/0.3477, allocations: 0.6094 kB / 0.5159 GB, free: 34.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.166e-05/0.3478, allocations: 11.27 kB / 0.5159 GB, free: 34.85 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.07e-05/0.3478, allocations: 1.312 kB / 0.5159 GB, free: 34.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.141e-06/0.3478, allocations: 11.66 kB / 0.5159 GB, free: 34.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.508e-05/0.3478, allocations: 90.67 kB / 0.516 GB, free: 34.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3479, allocations: 0 / 0.516 GB, free: 34.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001935/0.3481, allocations: 5.812 kB / 0.516 GB, free: 34.77 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 7.847e-05/0.3481, allocations: 97.88 kB / 0.5161 GB, free: 34.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.697e-05/0.3482, allocations: 21.45 kB / 0.5161 GB, free: 34.67 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3482, allocations: 0 / 0.5161 GB, free: 34.67 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.719e-05/0.3482, allocations: 10.61 kB / 0.5161 GB, free: 34.66 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000258/0.3485, allocations: 14.47 kB / 0.5161 GB, free: 34.66 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002927/0.3488, allocations: 152 kB / 0.5163 GB, free: 34.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001241/0.3489, allocations: 0.6882 MB / 0.5169 GB, free: 33.82 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 2.044e-05/0.349, allocations: 10.72 kB / 0.517 GB, free: 33.82 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.869e-05/0.349, allocations: 10.31 kB / 0.517 GB, free: 33.81 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.349, allocations: 4 kB / 0.517 GB, free: 33.8 MB / 378.7 MB Notification: Performance of Templates: time 0.002294/0.3513, allocations: 473 kB / 0.5174 GB, free: 33.74 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches