Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.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.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") translateModel(ModelicaTest.Utilities.TestFiles,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 178.5 kB / 17.41 MB, free: 4.289 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.459/1.459, allocations: 225.7 MB / 243.9 MB, free: 8.441 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.0009625/0.0009625, allocations: 93.56 kB / 295.1 MB, free: 9.477 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.3143/0.3143, allocations: 44.32 MB / 390.5 MB, free: 38.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004537/0.0004539, allocations: 8 kB / 463.1 MB, free: 464 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4556/0.456, allocations: 61.9 MB / 0.5127 GB, free: 38.07 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestFiles): time 0.0005885/0.4567, allocations: 220.7 kB / 0.5129 GB, free: 37.92 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001694/0.4584, allocations: 2.081 MB / 0.515 GB, free: 36.06 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.769e-05/0.4584, allocations: 0 / 0.515 GB, free: 36.06 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.261e-05/0.4584, allocations: 0 / 0.515 GB, free: 36.06 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001393/0.4586, allocations: 13.22 kB / 0.515 GB, free: 36.05 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:456:3-488:12:writable] Warning: Pure function ‘ModelicaTest.Utilities.Files‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0008456/0.4594, allocations: 194.9 kB / 0.5152 GB, free: 35.95 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.578e-05/0.4595, allocations: 3.125 kB / 0.5152 GB, free: 35.95 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.368e-05/0.4595, allocations: 7.938 kB / 0.5152 GB, free: 35.95 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.869e-05/0.4595, allocations: 3.094 kB / 0.5152 GB, free: 35.95 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.025e-05/0.4596, allocations: 11.14 kB / 0.5152 GB, free: 35.94 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.224e-06/0.4596, allocations: 2.906 kB / 0.5152 GB, free: 35.94 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002799/0.4624, allocations: 0.604 MB / 0.5158 GB, free: 35.7 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.356e-06/0.4625, allocations: 3.938 kB / 0.5158 GB, free: 35.7 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.185e-05/0.4625, allocations: 33.34 kB / 0.5158 GB, free: 35.66 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003177/0.4628, allocations: 172.9 kB / 0.516 GB, free: 35.61 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.4628, allocations: 0 / 0.516 GB, free: 35.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.4628, allocations: 0 / 0.516 GB, free: 35.61 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.4628, allocations: 0.9062 kB / 0.516 GB, free: 35.61 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003362/0.4632, allocations: 388 kB / 0.5164 GB, free: 35.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.4632, allocations: 9.312 kB / 0.5164 GB, free: 35.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.608e-05/0.4633, allocations: 5.938 kB / 0.5164 GB, free: 35.2 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.514e-05/0.4634, allocations: 161.4 kB / 0.5165 GB, free: 35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.57e-05/0.4634, allocations: 1.375 kB / 0.5165 GB, free: 35 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.797e-06/0.4634, allocations: 1.688 kB / 0.5165 GB, free: 35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.803e-05/0.4635, allocations: 42.55 kB / 0.5166 GB, free: 34.96 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.4635, allocations: 1.344 kB / 0.5166 GB, free: 34.96 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.746e-06/0.4635, allocations: 0 / 0.5166 GB, free: 34.96 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.4635, allocations: 0 / 0.5166 GB, free: 34.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.709e-05/0.4635, allocations: 2.188 kB / 0.5166 GB, free: 34.96 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.84e-05/0.4636, allocations: 146.8 kB / 0.5167 GB, free: 34.77 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.012e-05/0.4637, allocations: 20.05 kB / 0.5167 GB, free: 34.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.463e-05/0.4637, allocations: 10.17 kB / 0.5168 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.627e-06/0.4637, allocations: 1.25 kB / 0.5168 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.077e-05/0.4638, allocations: 65.33 kB / 0.5168 GB, free: 34.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.4638, allocations: 0 / 0.5168 GB, free: 34.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001433/0.4639, allocations: 67.83 kB / 0.5169 GB, free: 34.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.672e-05/0.4639, allocations: 78.36 kB / 0.517 GB, free: 34.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.87e-05/0.464, allocations: 100.3 kB / 0.517 GB, free: 34.39 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.873e-06/0.464, allocations: 25.7 kB / 0.5171 GB, free: 34.36 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.479e-05/0.464, allocations: 81.17 kB / 0.5172 GB, free: 34.28 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.482e-05/0.4641, allocations: 1.125 kB / 0.5172 GB, free: 34.28 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.854e-06/0.4641, allocations: 0 / 0.5172 GB, free: 34.28 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.836e-05/0.4641, allocations: 315.5 kB / 0.5175 GB, free: 33.96 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.325e-06/0.4641, allocations: 5.594 kB / 0.5175 GB, free: 33.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.222e-06/0.4641, allocations: 1.25 kB / 0.5175 GB, free: 33.96 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.164e-05/0.4642, allocations: 66.95 kB / 0.5175 GB, free: 33.88 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.4642, allocations: 3.938 kB / 0.5175 GB, free: 33.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.624e-05/0.4643, allocations: 70.95 kB / 0.5176 GB, free: 33.81 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/0.4643, allocations: 31.05 kB / 0.5176 GB, free: 33.78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.399e-06/0.4643, allocations: 2.656 kB / 0.5176 GB, free: 33.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.4644, allocations: 0 / 0.5176 GB, free: 33.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.61e-07/0.4644, allocations: 96 / 0.5176 GB, free: 33.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.4644, allocations: 4 kB / 0.5176 GB, free: 33.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.58e-05/0.4644, allocations: 0 / 0.5176 GB, free: 33.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.444e-06/0.4644, allocations: 2.688 kB / 0.5176 GB, free: 33.77 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.519e-05/0.4645, allocations: 134.8 kB / 0.5178 GB, free: 33.63 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.183e-05/0.4645, allocations: 11.22 kB / 0.5178 GB, free: 33.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.313e-05/0.4645, allocations: 6.719 kB / 0.5178 GB, free: 33.62 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.4645, allocations: 0 / 0.5178 GB, free: 33.62 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.4645, allocations: 3.156 kB / 0.5178 GB, free: 33.62 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.4645, allocations: 4 kB / 0.5178 GB, free: 33.61 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.887e-05/0.4646, allocations: 144.9 kB / 0.5179 GB, free: 33.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.4646, allocations: 3.938 kB / 0.5179 GB, free: 33.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.954e-06/0.4646, allocations: 6.781 kB / 0.5179 GB, free: 33.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.4646, allocations: 0 / 0.5179 GB, free: 33.42 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.572e-06/0.4646, allocations: 0 / 0.5179 GB, free: 33.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.4647, allocations: 0 / 0.5179 GB, free: 33.42 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.4647, allocations: 0 / 0.5179 GB, free: 33.42 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.171e-05/0.4647, allocations: 96.83 kB / 0.518 GB, free: 33.32 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.034e-05/0.4648, allocations: 85.03 kB / 0.5181 GB, free: 33.21 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.273e-05/0.4648, allocations: 4 kB / 0.5181 GB, free: 33.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.069e-05/0.4648, allocations: 0 / 0.5181 GB, free: 33.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.683e-05/0.4648, allocations: 6.203 kB / 0.5181 GB, free: 33.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-06/0.4648, allocations: 3.938 kB / 0.5181 GB, free: 33.21 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.723e-05/0.4649, allocations: 82.38 kB / 0.5182 GB, free: 33.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4649, allocations: 0 / 0.5182 GB, free: 33.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003203/0.4652, allocations: 57.25 kB / 0.5183 GB, free: 33.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0006909/0.4659, allocations: 403 kB / 0.5186 GB, free: 32.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.774e-05/0.466, allocations: 60.81 kB / 0.5187 GB, free: 32.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.466, allocations: 0 / 0.5187 GB, free: 32.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.973e-05/0.466, allocations: 57.56 kB / 0.5188 GB, free: 32.78 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001228/0.4661, allocations: 6.75 kB / 0.5188 GB, free: 32.78 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001675/0.4663, allocations: 88.42 kB / 0.5188 GB, free: 32.67 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001007/0.4664, allocations: 0.6751 MB / 0.5195 GB, free: 31.97 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.29e-06/0.4664, allocations: 0 / 0.5195 GB, free: 31.97 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.566e-06/0.4664, allocations: 9.969 kB / 0.5195 GB, free: 31.96 MB / 378.7 MB Notification: Performance of SimCode: time 6.92e-07/0.4665, allocations: 0 / 0.5195 GB, free: 31.96 MB / 378.7 MB Notification: Performance of Templates: time 0.004283/0.4707, allocations: 1.573 MB / 0.521 GB, free: 31.77 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestFiles/TestFiles.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestFiles.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches