Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.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.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") translateModel(ModelicaTest.Utilities.TestStrings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001777/0.001777, 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.421/1.421, allocations: 225.7 MB / 243.9 MB, free: 10.19 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.0008574/0.0008574, allocations: 81.62 kB / 295 MB, free: 9.738 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.3943/0.3943, allocations: 44.32 MB / 390.5 MB, free: 38.36 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003797/0.0003797, allocations: 8 kB / 463.1 MB, free: 500 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3406, allocations: 61.9 MB / 0.5127 GB, free: 37.98 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.0004971/0.3411, allocations: 209.4 kB / 0.5129 GB, free: 37.84 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00214/0.3432, allocations: 2.949 MB / 0.5158 GB, free: 35.04 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.262e-05/0.3433, allocations: 3.094 kB / 0.5158 GB, free: 35.04 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.221e-05/0.3433, allocations: 0 / 0.5158 GB, free: 35.04 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.59e-06/0.3433, allocations: 0 / 0.5158 GB, free: 35.04 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:4:3-220:14:writable] Warning: Pure function ‘ModelicaTest.Utilities.Strings‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0009811/0.3443, allocations: 448.4 kB / 0.5162 GB, free: 34.84 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 2.714e-05/0.3443, allocations: 2.969 kB / 0.5162 GB, free: 34.84 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.068e-05/0.3444, allocations: 0 / 0.5162 GB, free: 34.84 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.406e-05/0.3444, allocations: 0 / 0.5162 GB, free: 34.84 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.001e-05/0.3444, allocations: 3.094 kB / 0.5162 GB, free: 34.84 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.17e-06/0.3444, allocations: 3.938 kB / 0.5163 GB, free: 34.83 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03414/0.3786, allocations: 2.37 MB / 0.5186 GB, free: 33.89 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.25e-05/0.3786, allocations: 4.906 kB / 0.5186 GB, free: 33.89 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.314e-05/0.3787, allocations: 26.86 kB / 0.5186 GB, free: 33.86 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003153/0.379, allocations: 164.5 kB / 0.5188 GB, free: 33.8 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.379, allocations: 0 / 0.5188 GB, free: 33.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.379, allocations: 0 / 0.5188 GB, free: 33.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.379, allocations: 0 / 0.5188 GB, free: 33.8 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.0002515/0.3793, allocations: 386.4 kB / 0.5191 GB, free: 33.4 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.3793, allocations: 9.125 kB / 0.5191 GB, free: 33.4 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.429e-05/0.3793, allocations: 6.031 kB / 0.5191 GB, free: 33.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.224e-05/0.3794, allocations: 165.8 kB / 0.5193 GB, free: 33.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.187e-06/0.3794, allocations: 1.562 kB / 0.5193 GB, free: 33.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.888e-06/0.3794, allocations: 1.531 kB / 0.5193 GB, free: 33.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.696e-05/0.3795, allocations: 41.25 kB / 0.5193 GB, free: 33.15 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.812e-06/0.3795, allocations: 0 / 0.5193 GB, free: 33.15 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.404e-06/0.3795, allocations: 0 / 0.5193 GB, free: 33.15 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.3795, allocations: 1.125 kB / 0.5193 GB, free: 33.15 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.515e-05/0.3796, allocations: 5.734 kB / 0.5193 GB, free: 33.15 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.058e-05/0.3796, allocations: 144.1 kB / 0.5195 GB, free: 32.96 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.1e-05/0.3797, allocations: 17.28 kB / 0.5195 GB, free: 32.94 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.228e-05/0.3797, allocations: 6.469 kB / 0.5195 GB, free: 32.93 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.805e-06/0.3797, allocations: 0.5156 kB / 0.5195 GB, free: 32.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.061e-05/0.3797, allocations: 70.03 kB / 0.5196 GB, free: 32.85 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.3798, allocations: 5.125 kB / 0.5196 GB, free: 32.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001421/0.3799, allocations: 61.14 kB / 0.5196 GB, free: 32.78 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.157e-05/0.3799, allocations: 78.14 kB / 0.5197 GB, free: 32.69 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.737e-05/0.38, allocations: 90.47 kB / 0.5198 GB, free: 32.59 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.961e-06/0.38, allocations: 29.64 kB / 0.5198 GB, free: 32.55 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.358e-06/0.38, allocations: 81.2 kB / 0.5199 GB, free: 32.47 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.418e-05/0.38, allocations: 0 / 0.5199 GB, free: 32.47 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.703e-06/0.38, allocations: 5 kB / 0.5199 GB, free: 32.47 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.943e-05/0.3801, allocations: 315.7 kB / 0.5202 GB, free: 32.15 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.915e-06/0.3801, allocations: 5.562 kB / 0.5202 GB, free: 32.15 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.167e-06/0.3801, allocations: 1.031 kB / 0.5202 GB, free: 32.15 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.135e-05/0.3801, allocations: 65.56 kB / 0.5203 GB, free: 32.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.3801, allocations: 0 / 0.5203 GB, free: 32.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.998e-05/0.3802, allocations: 59.69 kB / 0.5203 GB, free: 32.01 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/0.3802, allocations: 40.28 kB / 0.5204 GB, free: 31.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.668e-06/0.3802, allocations: 0 / 0.5204 GB, free: 31.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.3802, allocations: 2.188 kB / 0.5204 GB, free: 31.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.71e-07/0.3802, allocations: 4.094 kB / 0.5204 GB, free: 31.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.3803, allocations: 0 / 0.5204 GB, free: 31.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.677e-05/0.3803, allocations: 2.266 kB / 0.5204 GB, free: 31.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.491e-06/0.3803, allocations: 0 / 0.5204 GB, free: 31.97 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 4.67e-05/0.3803, allocations: 136.1 kB / 0.5205 GB, free: 31.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.304e-06/0.3804, allocations: 4.641 kB / 0.5205 GB, free: 31.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.976e-06/0.3804, allocations: 8.219 kB / 0.5205 GB, free: 31.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.3804, allocations: 0.9375 kB / 0.5205 GB, free: 31.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.3804, allocations: 0 / 0.5205 GB, free: 31.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.3804, allocations: 7.984 kB / 0.5205 GB, free: 31.81 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.598e-05/0.3804, allocations: 152.9 kB / 0.5207 GB, free: 31.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.3804, allocations: 2.156 kB / 0.5207 GB, free: 31.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-07/0.3805, allocations: 0 / 0.5207 GB, free: 31.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.3805, allocations: 3.938 kB / 0.5207 GB, free: 31.61 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.149e-06/0.3805, allocations: 1.188 kB / 0.5207 GB, free: 31.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.3805, allocations: 0.6094 kB / 0.5207 GB, free: 31.61 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3805, allocations: 1.219 kB / 0.5207 GB, free: 31.61 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.423e-05/0.3805, allocations: 92.5 kB / 0.5208 GB, free: 31.51 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.067e-05/0.3806, allocations: 82.88 kB / 0.5208 GB, free: 31.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.244e-05/0.3806, allocations: 1.094 kB / 0.5209 GB, free: 31.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.487e-06/0.3806, allocations: 4.656 kB / 0.5209 GB, free: 31.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.56e-05/0.3806, allocations: 5.594 kB / 0.5209 GB, free: 31.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-06/0.3806, allocations: 0.5156 kB / 0.5209 GB, free: 31.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.179e-05/0.3807, allocations: 76.47 kB / 0.5209 GB, free: 31.33 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3807, allocations: 0 / 0.5209 GB, free: 31.33 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002887/0.3809, allocations: 69.62 kB / 0.521 GB, free: 31.32 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.0007194/0.3817, allocations: 452.8 kB / 0.5214 GB, free: 31.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001444/0.3818, allocations: 63.58 kB / 0.5215 GB, free: 31.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.3818, allocations: 0 / 0.5215 GB, free: 31.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.211e-05/0.3819, allocations: 63.33 kB / 0.5216 GB, free: 30.97 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001226/0.382, allocations: 3.797 kB / 0.5216 GB, free: 30.97 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001376/0.3822, allocations: 85.88 kB / 0.5216 GB, free: 30.87 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.513e-05/0.3822, allocations: 0.67 MB / 0.5223 GB, free: 30.17 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.331e-06/0.3823, allocations: 0.7031 kB / 0.5223 GB, free: 30.17 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.658e-06/0.3823, allocations: 10.09 kB / 0.5223 GB, free: 30.16 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3823, allocations: 2.719 kB / 0.5223 GB, free: 30.16 MB / 378.7 MB Notification: Performance of Templates: time 0.003999/0.3863, allocations: 2.13 MB / 0.5244 GB, free: 29.94 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.sim & ./ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestStrings/TestStrings.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches