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.001455/0.001455, allocations: 110.1 kB / 18.3 MB, free: 4.84 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.001512/0.001512, allocations: 199.3 kB / 19.23 MB, free: 3.914 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.454/1.454, allocations: 222.9 MB / 242.9 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.209/0.209, allocations: 44.17 MB / 337.3 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001258, allocations: 64.66 kB / 409.1 MB, free: 27.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1152, allocations: 60.82 MB / 469.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.00162/0.1169, allocations: 495.1 kB / 470.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007111/0.124, allocations: 4.834 MB / 475.2 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.767e-05/0.124, allocations: 0 / 475.2 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.028e-05/0.1241, allocations: 7.938 kB / 475.2 MB, free: 9.031 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.498e-06/0.1241, allocations: 0 / 475.2 MB, free: 9.031 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.006376/0.1305, allocations: 2.932 MB / 478.2 MB, free: 6.113 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.232e-05/0.1305, allocations: 3.938 kB / 478.2 MB, free: 6.109 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.857e-05/0.1306, allocations: 4 kB / 478.2 MB, free: 6.105 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.296e-05/0.1306, allocations: 0 / 478.2 MB, free: 6.105 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.41e-05/0.1306, allocations: 4 kB / 478.2 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.009e-06/0.1306, allocations: 0 / 478.2 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02462/0.1552, allocations: 18.55 MB / 496.7 MB, free: 3.535 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.235e-05/0.1553, allocations: 3.938 kB / 496.7 MB, free: 3.531 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.553e-05/0.1553, allocations: 8 kB / 496.7 MB, free: 3.523 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2404/0.3957, allocations: 27.46 MB / 0.5119 GB, free: 27.87 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.125e-05/0.3958, allocations: 0 / 0.5119 GB, free: 27.87 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.3958, allocations: 2.844 kB / 0.5119 GB, free: 27.87 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.776e-06/0.3958, allocations: 1.188 kB / 0.5119 GB, free: 27.87 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.01328/0.4091, allocations: 0.6533 MB / 0.5126 GB, free: 27.38 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.4092, allocations: 9.125 kB / 0.5126 GB, free: 27.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.971e-05/0.4092, allocations: 3.125 kB / 0.5126 GB, free: 27.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.316e-05/0.4093, allocations: 165.7 kB / 0.5127 GB, free: 27.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.263e-05/0.4093, allocations: 3.062 kB / 0.5127 GB, free: 27.18 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.248e-05/0.4093, allocations: 1.062 kB / 0.5127 GB, free: 27.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.063e-05/0.4094, allocations: 31.86 kB / 0.5128 GB, free: 27.15 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.4095, allocations: 0 / 0.5128 GB, free: 27.15 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.766e-06/0.4095, allocations: 1.344 kB / 0.5128 GB, free: 27.15 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.826e-06/0.4095, allocations: 2.812 kB / 0.5128 GB, free: 27.15 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.988e-05/0.4095, allocations: 6.516 kB / 0.5128 GB, free: 27.15 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001011/0.4096, allocations: 149.6 kB / 0.5129 GB, free: 26.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.976e-05/0.4097, allocations: 18.89 kB / 0.5129 GB, free: 26.94 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.423e-05/0.4097, allocations: 9.422 kB / 0.5129 GB, free: 26.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.297e-06/0.4097, allocations: 1.5 kB / 0.5129 GB, free: 26.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.476e-05/0.4097, allocations: 62.7 kB / 0.513 GB, free: 26.86 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 2.304e-06/0.4098, allocations: 0.5625 kB / 0.513 GB, free: 26.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001603/0.4099, allocations: 65.17 kB / 0.5131 GB, free: 26.8 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.913e-05/0.41, allocations: 78.39 kB / 0.5131 GB, free: 26.7 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.111e-05/0.41, allocations: 93.03 kB / 0.5132 GB, free: 26.61 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.693e-06/0.41, allocations: 25.7 kB / 0.5133 GB, free: 26.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.104e-05/0.41, allocations: 82.08 kB / 0.5133 GB, free: 26.49 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.791e-05/0.41, allocations: 3.031 kB / 0.5133 GB, free: 26.49 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.554e-05/0.4101, allocations: 12.91 kB / 0.5133 GB, free: 26.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.666e-05/0.4101, allocations: 316.9 kB / 0.5136 GB, free: 26.16 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.133e-05/0.4101, allocations: 6.375 kB / 0.5137 GB, free: 26.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.522e-06/0.4102, allocations: 2.25 kB / 0.5137 GB, free: 26.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.413e-05/0.4102, allocations: 63.83 kB / 0.5137 GB, free: 26.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.4102, allocations: 2.688 kB / 0.5137 GB, free: 26.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.859e-05/0.4103, allocations: 63.84 kB / 0.5138 GB, free: 26.03 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.956e-05/0.4103, allocations: 34.64 kB / 0.5138 GB, free: 26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.4103, allocations: 0 / 0.5138 GB, free: 26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.4103, allocations: 4.75 kB / 0.5138 GB, free: 26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.293e-06/0.4103, allocations: 0.8906 kB / 0.5138 GB, free: 26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.4104, allocations: 1.062 kB / 0.5138 GB, free: 26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.869e-05/0.4104, allocations: 0 / 0.5138 GB, free: 26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-06/0.4104, allocations: 2.406 kB / 0.5138 GB, free: 26 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.455e-05/0.4104, allocations: 139.8 kB / 0.514 GB, free: 25.85 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.866e-06/0.4105, allocations: 3.375 kB / 0.514 GB, free: 25.85 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.277e-05/0.4105, allocations: 6.781 kB / 0.514 GB, free: 25.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.4105, allocations: 0.8438 kB / 0.514 GB, free: 25.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.4105, allocations: 1.344 kB / 0.514 GB, free: 25.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.4105, allocations: 0 / 0.514 GB, free: 25.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.58e-05/0.4106, allocations: 152.8 kB / 0.5141 GB, free: 25.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.4106, allocations: 0.6562 kB / 0.5141 GB, free: 25.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.343e-06/0.4106, allocations: 2.281 kB / 0.5141 GB, free: 25.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.4106, allocations: 0 / 0.5141 GB, free: 25.65 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.692e-06/0.4106, allocations: 2.969 kB / 0.5141 GB, free: 25.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.4106, allocations: 0.7031 kB / 0.5141 GB, free: 25.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.4106, allocations: 1.219 kB / 0.5141 GB, free: 25.65 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.045e-05/0.4107, allocations: 104.1 kB / 0.5142 GB, free: 25.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.019e-05/0.4107, allocations: 82.23 kB / 0.5143 GB, free: 25.46 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.474e-05/0.4107, allocations: 1.938 kB / 0.5143 GB, free: 25.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.969e-06/0.4108, allocations: 1.125 kB / 0.5143 GB, free: 25.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.465e-05/0.4108, allocations: 4.25 kB / 0.5143 GB, free: 25.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.836e-06/0.4108, allocations: 0.9375 kB / 0.5143 GB, free: 25.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.32e-05/0.4108, allocations: 75.28 kB / 0.5144 GB, free: 25.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4108, allocations: 0.5 kB / 0.5144 GB, free: 25.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.01919/0.43, allocations: 3.779 MB / 0.5181 GB, free: 25.29 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.03461/0.4647, allocations: 0.9618 MB / 0.519 GB, free: 25.08 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001647/0.4649, allocations: 68.88 kB / 0.5191 GB, free: 25.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.4649, allocations: 0 / 0.5191 GB, free: 25.02 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.627e-05/0.4649, allocations: 58.28 kB / 0.5191 GB, free: 24.95 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001886/0.4651, allocations: 10.7 kB / 0.5191 GB, free: 24.95 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002128/0.4653, allocations: 105.4 kB / 0.5192 GB, free: 24.82 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.759e-05/0.4655, allocations: 0.669 MB / 0.5199 GB, free: 24.13 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.383e-05/0.4655, allocations: 11.19 kB / 0.5199 GB, free: 24.12 MB / 382.1 MB Notification: Performance of SimCode: time 2.51e-07/0.4655, allocations: 0 / 0.5199 GB, free: 24.12 MB / 382.1 MB Notification: Performance of Templates: time 0.09123/0.5567, allocations: 64.88 MB / 0.5833 GB, free: 10.23 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