Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.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.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2") translateModel(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 106.3 kB / 17.98 MB, free: 5.402 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.001234/0.001234, allocations: 193.3 kB / 18.91 MB, free: 4.477 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.32/1.32, allocations: 222.9 MB / 242.6 MB, free: 15.44 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.208/0.208, allocations: 44.18 MB / 336.9 MB, free: 2.957 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001337, allocations: 65.3 kB / 408.5 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1098, allocations: 60.82 MB / 469.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.00234/0.1122, allocations: 0.5556 MB / 469.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007392/0.1196, allocations: 4.861 MB / 474.8 MB, free: 9.312 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.91e-05/0.1197, allocations: 4 kB / 474.8 MB, free: 9.309 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.349e-05/0.1197, allocations: 0 / 474.8 MB, free: 9.309 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.57e-06/0.1198, allocations: 3.938 kB / 474.8 MB, free: 9.305 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:214:3-483:16:writable] Warning: Pure function ‘ModelicaTest.Math.Matrices2‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.00707/0.1269, allocations: 2.721 MB / 477.5 MB, free: 6.598 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.986e-05/0.1269, allocations: 7.938 kB / 477.5 MB, free: 6.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.351e-05/0.127, allocations: 0 / 477.5 MB, free: 6.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.586e-05/0.127, allocations: 0 / 477.5 MB, free: 6.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.781e-05/0.1271, allocations: 3.984 kB / 477.5 MB, free: 6.586 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.142e-06/0.1271, allocations: 0 / 477.5 MB, free: 6.586 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02689/0.154, allocations: 19 MB / 496.5 MB, free: 3.57 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.488e-05/0.154, allocations: 4 kB / 496.5 MB, free: 3.566 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.054e-05/0.1541, allocations: 3.984 kB / 496.5 MB, free: 3.562 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.229/0.3831, allocations: 20.35 MB / 0.5048 GB, free: 19.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.3831, allocations: 0.5625 kB / 0.5048 GB, free: 19.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3831, allocations: 0 / 0.5048 GB, free: 19.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.3831, allocations: 0 / 0.5048 GB, free: 19.25 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.006926/0.3901, allocations: 0.6513 MB / 0.5054 GB, free: 18.76 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.3901, allocations: 10.53 kB / 0.5054 GB, free: 18.76 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.168e-05/0.3902, allocations: 0.9375 kB / 0.5054 GB, free: 18.76 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.113e-05/0.3902, allocations: 173.7 kB / 0.5056 GB, free: 18.56 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.028e-05/0.3902, allocations: 0 / 0.5056 GB, free: 18.56 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.446e-06/0.3903, allocations: 2.344 kB / 0.5056 GB, free: 18.56 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.728e-05/0.3903, allocations: 32.36 kB / 0.5056 GB, free: 18.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.981e-06/0.3904, allocations: 0 / 0.5056 GB, free: 18.53 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.047e-06/0.3904, allocations: 2.094 kB / 0.5056 GB, free: 18.53 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.3904, allocations: 0.9844 kB / 0.5056 GB, free: 18.53 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.78e-05/0.3904, allocations: 9.656 kB / 0.5056 GB, free: 18.53 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.037e-05/0.3905, allocations: 150.4 kB / 0.5058 GB, free: 18.34 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.41e-05/0.3905, allocations: 19.33 kB / 0.5058 GB, free: 18.31 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.201e-05/0.3906, allocations: 6.266 kB / 0.5058 GB, free: 18.3 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.123e-06/0.3906, allocations: 2.25 kB / 0.5058 GB, free: 18.3 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.681e-05/0.3906, allocations: 61.09 kB / 0.5058 GB, free: 18.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.3906, allocations: 0 / 0.5058 GB, free: 18.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001493/0.3908, allocations: 67.31 kB / 0.5059 GB, free: 18.17 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.213e-05/0.3908, allocations: 79.05 kB / 0.506 GB, free: 18.08 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.369e-05/0.3908, allocations: 93.67 kB / 0.5061 GB, free: 17.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.476e-06/0.3908, allocations: 25.7 kB / 0.5061 GB, free: 17.95 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.43e-05/0.3909, allocations: 83.36 kB / 0.5062 GB, free: 17.87 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.087e-05/0.3909, allocations: 2.234 kB / 0.5062 GB, free: 17.87 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.609e-05/0.3909, allocations: 12.86 kB / 0.5062 GB, free: 17.85 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.809e-05/0.391, allocations: 320.1 kB / 0.5065 GB, free: 17.54 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.767e-06/0.391, allocations: 0 / 0.5065 GB, free: 17.54 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.663e-06/0.391, allocations: 1.578 kB / 0.5065 GB, free: 17.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.34e-05/0.391, allocations: 71.28 kB / 0.5066 GB, free: 17.46 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3911, allocations: 2.562 kB / 0.5066 GB, free: 17.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.409e-05/0.3911, allocations: 59.78 kB / 0.5066 GB, free: 17.4 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.6e-05/0.3911, allocations: 31.62 kB / 0.5067 GB, free: 17.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/0.3912, allocations: 2.906 kB / 0.5067 GB, free: 17.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.3912, allocations: 0.6094 kB / 0.5067 GB, free: 17.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-07/0.3912, allocations: 1.156 kB / 0.5067 GB, free: 17.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.3912, allocations: 0 / 0.5067 GB, free: 17.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.665e-05/0.3912, allocations: 4.484 kB / 0.5067 GB, free: 17.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.3912, allocations: 0.8125 kB / 0.5067 GB, free: 17.37 MB / 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 5.192e-05/0.3913, allocations: 142.8 kB / 0.5068 GB, free: 17.22 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.477e-06/0.3913, allocations: 0.5156 kB / 0.5068 GB, free: 17.22 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.059e-05/0.3913, allocations: 4.781 kB / 0.5068 GB, free: 17.21 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.3913, allocations: 3.281 kB / 0.5068 GB, free: 17.21 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.3913, allocations: 4.344 kB / 0.5068 GB, free: 17.21 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.3913, allocations: 0 / 0.5068 GB, free: 17.21 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.085e-05/0.3914, allocations: 152.9 kB / 0.507 GB, free: 17.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.3914, allocations: 1.062 kB / 0.507 GB, free: 17.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.3914, allocations: 0 / 0.507 GB, free: 17.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.3914, allocations: 0.5156 kB / 0.507 GB, free: 17.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.48e-06/0.3914, allocations: 1.125 kB / 0.507 GB, free: 17.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.3914, allocations: 2.469 kB / 0.507 GB, free: 17.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.22e-07/0.3914, allocations: 0 / 0.507 GB, free: 17.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.113e-05/0.3915, allocations: 95.58 kB / 0.5071 GB, free: 16.92 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.536e-05/0.3915, allocations: 83.48 kB / 0.5071 GB, free: 16.82 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.221e-05/0.3915, allocations: 1.578 kB / 0.5071 GB, free: 16.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.089e-05/0.3916, allocations: 3.391 kB / 0.5071 GB, free: 16.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.11e-05/0.3916, allocations: 3.516 kB / 0.5071 GB, free: 16.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-06/0.3916, allocations: 1.094 kB / 0.5071 GB, free: 16.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.008e-05/0.3916, allocations: 76.31 kB / 0.5072 GB, free: 16.75 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3916, allocations: 0 / 0.5072 GB, free: 16.75 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.01047/0.4021, allocations: 3.776 MB / 0.5109 GB, free: 16.66 MB / 382.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.02018/0.4223, allocations: 0.9735 MB / 0.5119 GB, free: 16.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001281/0.4224, allocations: 61.33 kB / 0.5119 GB, free: 16.39 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.4225, allocations: 0 / 0.5119 GB, free: 16.39 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.155e-05/0.4225, allocations: 59.77 kB / 0.512 GB, free: 16.33 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000144/0.4226, allocations: 6.688 kB / 0.512 GB, free: 16.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000185/0.4228, allocations: 102.7 kB / 0.5121 GB, free: 16.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001089/0.4229, allocations: 0.6723 MB / 0.5127 GB, free: 15.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.465e-05/0.423, allocations: 9.781 kB / 0.5127 GB, free: 15.5 MB / 382.1 MB Notification: Performance of SimCode: time 6.72e-07/0.423, allocations: 0 / 0.5127 GB, free: 15.5 MB / 382.1 MB Notification: Performance of Templates: time 0.08775/0.5107, allocations: 64.89 MB / 0.5761 GB, free: 13.31 MB / 430.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices2/TestMatrices2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches