Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 110.4 kB / 17.78 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000962/0.0009621, allocations: 187.9 kB / 18.71 MB, free: 4.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.276/1.276, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2016/0.2016, allocations: 44.2 MB / 336.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 67.89 kB / 470.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3156/0.317, allocations: 60.82 MB / 0.5189 GB, free: 3.586 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001446/0.3185, allocations: 497.2 kB / 0.5194 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001677/0.3202, allocations: 1.557 MB / 0.5209 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.513e-05/0.3202, allocations: 1.406 kB / 0.5209 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.161e-05/0.3202, allocations: 0 / 0.5209 GB, free: 2.168 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.851e-06/0.3202, allocations: 0 / 0.5209 GB, free: 2.168 MB / 382.1 MB [/home/hudson/saved_omc/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.0007254/0.321, allocations: 276.3 kB / 0.5211 GB, free: 2.082 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.877e-05/0.321, allocations: 1.188 kB / 0.5211 GB, free: 2.082 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.221e-05/0.3211, allocations: 2.641 kB / 0.5212 GB, free: 2.082 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.393e-05/0.3211, allocations: 3.984 kB / 0.5212 GB, free: 2.078 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.615e-05/0.3211, allocations: 1.062 kB / 0.5212 GB, free: 2.078 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.92e-06/0.3211, allocations: 0 / 0.5212 GB, free: 2.078 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000615/0.3217, allocations: 0.4912 MB / 0.5216 GB, free: 1.961 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.311e-06/0.3217, allocations: 0 / 0.5216 GB, free: 1.961 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.976e-05/0.3218, allocations: 1.156 kB / 0.5216 GB, free: 1.961 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003803/0.3222, allocations: 304.8 kB / 0.5219 GB, free: 1.898 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.3222, allocations: 0 / 0.5219 GB, free: 1.898 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3222, allocations: 1.25 kB / 0.5219 GB, free: 1.898 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.283e-06/0.3222, allocations: 0 / 0.5219 GB, free: 1.898 MB / 382.1 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.000236/0.3224, allocations: 378.1 kB / 0.5223 GB, free: 1.492 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.964e-05/0.3225, allocations: 9.281 kB / 0.5223 GB, free: 1.492 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.456e-05/0.3225, allocations: 1.5 kB / 0.5223 GB, free: 1.492 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.243e-05/0.3225, allocations: 161.8 kB / 0.5225 GB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.3225, allocations: 1.531 kB / 0.5225 GB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.282e-06/0.3226, allocations: 5.375 kB / 0.5225 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.51e-05/0.3226, allocations: 37.45 kB / 0.5225 GB, free: 1.254 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.34e-06/0.3226, allocations: 0 / 0.5225 GB, free: 1.254 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.572e-06/0.3226, allocations: 0 / 0.5225 GB, free: 1.254 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.3227, allocations: 1.344 kB / 0.5225 GB, free: 1.254 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.577e-05/0.3227, allocations: 5.688 kB / 0.5225 GB, free: 1.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.47e-05/0.3228, allocations: 148.2 kB / 0.5226 GB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.772e-05/0.3228, allocations: 17.33 kB / 0.5227 GB, free: 1.035 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.187e-05/0.3228, allocations: 10.52 kB / 0.5227 GB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.422e-06/0.3228, allocations: 0 / 0.5227 GB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.47e-05/0.3228, allocations: 66.95 kB / 0.5227 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.01e-07/0.3229, allocations: 0 / 0.5227 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001262/0.323, allocations: 65.56 kB / 0.5228 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.563e-05/0.323, allocations: 78.11 kB / 0.5229 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.883e-05/0.323, allocations: 90.42 kB / 0.523 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.544e-06/0.3231, allocations: 26.55 kB / 0.523 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.241e-05/0.3231, allocations: 80.14 kB / 0.5231 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.898e-05/0.3231, allocations: 1.312 kB / 0.5231 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.769e-05/0.3231, allocations: 17.08 kB / 0.5231 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.881e-05/0.3232, allocations: 315.6 kB / 0.5234 GB, free: 244 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.201e-05/0.3232, allocations: 5.672 kB / 0.5234 GB, free: 240 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.771e-06/0.3232, allocations: 1.188 kB / 0.5234 GB, free: 240 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.275e-05/0.3232, allocations: 64.84 kB / 0.5234 GB, free: 164 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.3233, allocations: 0 / 0.5234 GB, free: 164 kB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.264e-05/0.3233, allocations: 64.17 kB / 0.5235 GB, free: 96 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.684e-05/0.3233, allocations: 36.06 kB / 0.5235 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.3234, allocations: 0 / 0.5235 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.3234, allocations: 1.812 kB / 0.5235 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.92e-07/0.3234, allocations: 7.938 kB / 0.5236 GB, free: 52 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.807e-06/0.3234, allocations: 0 / 0.5236 GB, free: 52 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.433e-05/0.3234, allocations: 1.891 kB / 0.5236 GB, free: 52 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.52e-06/0.3234, allocations: 0 / 0.5236 GB, free: 52 kB / 382.1 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 7.709e-05/0.3235, allocations: 139.2 kB / 0.5237 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.052e-05/0.3235, allocations: 5.688 kB / 0.5237 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.087e-06/0.3235, allocations: 4.406 kB / 0.5237 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.3235, allocations: 0.6094 kB / 0.5237 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.3235, allocations: 0 / 0.5237 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.3235, allocations: 5.156 kB / 0.5237 GB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.596e-05/0.3236, allocations: 149.3 kB / 0.5238 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.71e-07/0.3236, allocations: 0 / 0.5238 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.332e-06/0.3236, allocations: 1.188 kB / 0.5238 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.3236, allocations: 4.5 kB / 0.5238 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.3237, allocations: 1.125 kB / 0.5238 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.3237, allocations: 0.75 kB / 0.5238 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.3237, allocations: 0 / 0.5238 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.681e-05/0.3238, allocations: 96.42 kB / 0.5239 GB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.111e-05/0.3238, allocations: 84.02 kB / 0.524 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.309e-05/0.3238, allocations: 3.938 kB / 0.524 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.636e-06/0.3238, allocations: 1.938 kB / 0.524 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.484e-05/0.3239, allocations: 0.5156 kB / 0.524 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.322e-06/0.3239, allocations: 6.328 kB / 0.524 GB, free: 15.48 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.071e-05/0.3239, allocations: 79.22 kB / 0.5241 GB, free: 15.41 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3239, allocations: 0 / 0.5241 GB, free: 15.41 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000321/0.3242, allocations: 63.17 kB / 0.5242 GB, free: 15.39 MB / 398.1 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.0003809/0.3246, allocations: 205.6 kB / 0.5244 GB, free: 15.26 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.147e-05/0.3247, allocations: 63.02 kB / 0.5244 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3247, allocations: 0 / 0.5244 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.027e-05/0.3247, allocations: 55.61 kB / 0.5245 GB, free: 15.13 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00011/0.3249, allocations: 6.125 kB / 0.5245 GB, free: 15.13 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001433/0.325, allocations: 75.34 kB / 0.5246 GB, free: 15.04 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002029/0.3252, allocations: 0.6741 MB / 0.5252 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.661e-06/0.3252, allocations: 1.125 kB / 0.5252 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.127e-06/0.3252, allocations: 12.53 kB / 0.5252 GB, free: 14.33 MB / 398.1 MB Notification: Performance of SimCode: time 2e-07/0.3252, allocations: 0 / 0.5252 GB, free: 14.33 MB / 398.1 MB Notification: Performance of Templates: time 0.003469/0.3287, allocations: 1.276 MB / 0.5265 GB, free: 14.07 MB / 398.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches