Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.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.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices") translateModel(ModelicaTest.Math.TestMatrices,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001526/0.001525, allocations: 175.2 kB / 17.41 MB, free: 4.293 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.532/1.532, 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.0007757/0.0007757, allocations: 88.69 kB / 295 MB, free: 9.719 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.3195/0.3195, allocations: 44.33 MB / 390.5 MB, free: 38.41 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002927/0.0002925, allocations: 11.98 kB / 463.1 MB, free: 468 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3365/0.3368, allocations: 61.9 MB / 0.5127 GB, free: 38.24 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.0005594/0.3374, allocations: 223.8 kB / 0.5129 GB, free: 38.09 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001601/0.339, allocations: 1.813 MB / 0.5147 GB, free: 36.64 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.479e-05/0.339, allocations: 0 / 0.5147 GB, free: 36.64 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.628e-05/0.3391, allocations: 0 / 0.5147 GB, free: 36.64 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5e-06/0.3391, allocations: 0 / 0.5147 GB, free: 36.64 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:171:3-212:15:writable] Warning: Pure function ‘ModelicaTest.Math.Matrices‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0006955/0.3398, allocations: 246.3 kB / 0.515 GB, free: 36.57 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.019e-05/0.3398, allocations: 4 kB / 0.515 GB, free: 36.57 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.59e-05/0.3399, allocations: 7.234 kB / 0.515 GB, free: 36.56 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.698e-05/0.3399, allocations: 6.625 kB / 0.515 GB, free: 36.56 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.347e-05/0.3399, allocations: 0 / 0.515 GB, free: 36.56 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.019e-06/0.3399, allocations: 0 / 0.515 GB, free: 36.56 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005526/0.3405, allocations: 460.5 kB / 0.5154 GB, free: 36.46 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.855e-06/0.3405, allocations: 0 / 0.5154 GB, free: 36.46 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.149e-05/0.3405, allocations: 28.61 kB / 0.5154 GB, free: 36.43 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004008/0.341, allocations: 309.9 kB / 0.5157 GB, free: 36.37 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.341, allocations: 0 / 0.5157 GB, free: 36.37 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.341, allocations: 0 / 0.5157 GB, free: 36.37 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.418e-06/0.341, allocations: 0 / 0.5157 GB, free: 36.37 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.0002461/0.3412, allocations: 376.6 kB / 0.5161 GB, free: 35.96 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.3413, allocations: 9.062 kB / 0.5161 GB, free: 35.96 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.709e-05/0.3413, allocations: 3.812 kB / 0.5161 GB, free: 35.96 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.394e-05/0.3414, allocations: 168.3 kB / 0.5163 GB, free: 35.76 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.3414, allocations: 384 / 0.5163 GB, free: 35.76 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.756e-06/0.3414, allocations: 4.312 kB / 0.5163 GB, free: 35.76 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.589e-05/0.3415, allocations: 39.97 kB / 0.5163 GB, free: 35.72 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.3415, allocations: 0 / 0.5163 GB, free: 35.72 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.545e-06/0.3415, allocations: 0 / 0.5163 GB, free: 35.72 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.3415, allocations: 2.781 kB / 0.5163 GB, free: 35.72 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.346e-05/0.3415, allocations: 0 / 0.5163 GB, free: 35.72 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.093e-05/0.3416, allocations: 148.5 kB / 0.5165 GB, free: 35.53 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.19e-05/0.3417, allocations: 14.58 kB / 0.5165 GB, free: 35.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.328e-05/0.3417, allocations: 18.84 kB / 0.5165 GB, free: 35.49 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.035e-06/0.3417, allocations: 0 / 0.5165 GB, free: 35.49 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.062e-05/0.3418, allocations: 60.2 kB / 0.5165 GB, free: 35.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 7.92e-07/0.3418, allocations: 0 / 0.5165 GB, free: 35.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001484/0.3419, allocations: 71.45 kB / 0.5166 GB, free: 35.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.837e-05/0.3419, allocations: 77.11 kB / 0.5167 GB, free: 35.25 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.081e-05/0.342, allocations: 89.86 kB / 0.5168 GB, free: 35.15 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.451e-06/0.342, allocations: 25.7 kB / 0.5168 GB, free: 35.12 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.073e-05/0.342, allocations: 87.3 kB / 0.5169 GB, free: 35.04 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.649e-05/0.342, allocations: 0 / 0.5169 GB, free: 35.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.224e-06/0.342, allocations: 0 / 0.5169 GB, free: 35.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.933e-05/0.3421, allocations: 310.8 kB / 0.5172 GB, free: 34.72 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.885e-06/0.3421, allocations: 3.938 kB / 0.5172 GB, free: 34.72 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.149e-06/0.3421, allocations: 6.781 kB / 0.5172 GB, free: 34.71 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.985e-05/0.3421, allocations: 62.41 kB / 0.5172 GB, free: 34.64 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3422, allocations: 0 / 0.5172 GB, free: 34.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.709e-05/0.3422, allocations: 64.12 kB / 0.5173 GB, free: 34.58 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.3422, allocations: 32.61 kB / 0.5173 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.3422, allocations: 0 / 0.5173 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.3423, allocations: 6.312 kB / 0.5173 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.3423, allocations: 0 / 0.5173 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.3423, allocations: 0 / 0.5173 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.449e-05/0.3423, allocations: 0 / 0.5173 GB, free: 34.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.971e-06/0.3423, allocations: 0 / 0.5173 GB, free: 34.54 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 5.655e-05/0.3424, allocations: 147 kB / 0.5175 GB, free: 34.39 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.744e-06/0.3424, allocations: 10.88 kB / 0.5175 GB, free: 34.38 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.454e-06/0.3424, allocations: 7.062 kB / 0.5175 GB, free: 34.37 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.92e-07/0.3424, allocations: 0 / 0.5175 GB, free: 34.37 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.3424, allocations: 0 / 0.5175 GB, free: 34.37 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.3424, allocations: 7.172 kB / 0.5175 GB, free: 34.37 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.346e-05/0.3425, allocations: 144.6 kB / 0.5176 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.3425, allocations: 0 / 0.5176 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.3425, allocations: 0 / 0.5176 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.3425, allocations: 3.938 kB / 0.5176 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.21e-06/0.3425, allocations: 0 / 0.5176 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.3425, allocations: 5.969 kB / 0.5177 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.3425, allocations: 4 kB / 0.5177 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.133e-05/0.3426, allocations: 86.89 kB / 0.5177 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.05e-05/0.3426, allocations: 83.89 kB / 0.5178 GB, free: 33.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.269e-05/0.3426, allocations: 3.938 kB / 0.5178 GB, free: 33.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.716e-06/0.3427, allocations: 0 / 0.5178 GB, free: 33.97 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.064e-05/0.3427, allocations: 0 / 0.5178 GB, free: 33.97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.116e-06/0.3427, allocations: 2.75 kB / 0.5178 GB, free: 33.97 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.306e-05/0.3427, allocations: 83.25 kB / 0.5179 GB, free: 33.89 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3427, allocations: 0 / 0.5179 GB, free: 33.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003244/0.343, allocations: 67.25 kB / 0.518 GB, free: 33.88 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.000394/0.3434, allocations: 216.3 kB / 0.5182 GB, free: 33.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 7.238e-05/0.3435, allocations: 56.69 kB / 0.5182 GB, free: 33.68 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3435, allocations: 0 / 0.5182 GB, free: 33.68 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.978e-05/0.3436, allocations: 61.55 kB / 0.5183 GB, free: 33.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001101/0.3437, allocations: 3.844 kB / 0.5183 GB, free: 33.62 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000145/0.3438, allocations: 80.67 kB / 0.5184 GB, free: 33.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00011/0.3439, allocations: 0.6692 MB / 0.519 GB, free: 32.82 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.2e-06/0.344, allocations: 0 / 0.519 GB, free: 32.82 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.334e-06/0.344, allocations: 7.438 kB / 0.519 GB, free: 32.81 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.344, allocations: 2.625 kB / 0.519 GB, free: 32.81 MB / 378.7 MB Notification: Performance of Templates: time 0.003477/0.3475, allocations: 1.261 MB / 0.5203 GB, free: 32.7 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices/TestMatrices.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches