Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2") translateModel(ModelicaTest.Math.TestMatrices2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001817/0.001817, allocations: 111.4 kB / 17.98 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002306/0.002306, allocations: 205.8 kB / 18.92 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.859/2.859, allocations: 227.4 MB / 247.1 MB, free: 9.086 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.6357/0.6357, allocations: 46.1 MB / 344.4 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00673/0.00673, allocations: 72.2 kB / 417.7 MB, free: 20.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2313/0.2381, allocations: 62.44 MB / 480.1 MB, free: 5.602 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.002929/0.2411, allocations: 0.5475 MB / 480.7 MB, free: 5.051 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01183/0.2529, allocations: 4.914 MB / 485.6 MB, free: 116 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.496e-05/0.253, allocations: 3.938 kB / 485.6 MB, free: 112 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.332e-05/0.2531, allocations: 0 / 485.6 MB, free: 112 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.789e-06/0.2532, allocations: 0 / 485.6 MB, free: 112 kB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.01354/0.2667, allocations: 2.729 MB / 488.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 8.742e-05/0.2668, allocations: 0 / 488.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.55e-05/0.2669, allocations: 0 / 488.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.88e-05/0.267, allocations: 0 / 488.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.748e-05/0.267, allocations: 4 kB / 488.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.015e-05/0.267, allocations: 4 kB / 488.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04727/0.3143, allocations: 19.01 MB / 0.4955 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.019e-05/0.3144, allocations: 0 / 0.4955 GB, free: 10.36 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.097e-05/0.3145, allocations: 11.98 kB / 0.4955 GB, free: 10.35 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.7328/1.047, allocations: 20.35 MB / 0.5153 GB, free: 16.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.148e-05/1.047, allocations: 1.969 kB / 0.5153 GB, free: 16.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.476e-06/1.047, allocations: 0 / 0.5153 GB, free: 16.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.328e-06/1.047, allocations: 0 / 0.5153 GB, free: 16.98 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.02616/1.074, allocations: 0.6546 MB / 0.516 GB, free: 16.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001049/1.074, allocations: 10.41 kB / 0.516 GB, free: 16.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.827e-05/1.074, allocations: 3.531 kB / 0.516 GB, free: 16.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001511/1.074, allocations: 167.2 kB / 0.5162 GB, free: 16.3 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.257e-05/1.074, allocations: 0 / 0.5162 GB, free: 16.3 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.92e-05/1.074, allocations: 1.625 kB / 0.5162 GB, free: 16.3 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001919/1.074, allocations: 34.06 kB / 0.5162 GB, free: 16.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/1.074, allocations: 3.75 kB / 0.5162 GB, free: 16.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.49e-05/1.074, allocations: 2.469 kB / 0.5162 GB, free: 16.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/1.074, allocations: 0 / 0.5162 GB, free: 16.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.536e-05/1.074, allocations: 3.406 kB / 0.5162 GB, free: 16.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001505/1.075, allocations: 147.3 kB / 0.5163 GB, free: 16.07 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.747e-05/1.075, allocations: 20.8 kB / 0.5164 GB, free: 16.05 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.967e-05/1.075, allocations: 13.12 kB / 0.5164 GB, free: 16.04 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.221e-05/1.075, allocations: 4.125 kB / 0.5164 GB, free: 16.04 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.54e-05/1.075, allocations: 58.64 kB / 0.5164 GB, free: 15.97 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.383e-06/1.075, allocations: 0.8438 kB / 0.5164 GB, free: 15.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002824/1.075, allocations: 65.53 kB / 0.5165 GB, free: 15.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.8e-05/1.075, allocations: 78.64 kB / 0.5166 GB, free: 15.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.618e-05/1.075, allocations: 92.39 kB / 0.5167 GB, free: 15.72 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.055e-05/1.075, allocations: 25.7 kB / 0.5167 GB, free: 15.69 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.774e-05/1.075, allocations: 81.48 kB / 0.5168 GB, free: 15.61 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.224e-05/1.075, allocations: 1.094 kB / 0.5168 GB, free: 15.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.708e-05/1.075, allocations: 14.81 kB / 0.5168 GB, free: 15.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.532e-05/1.075, allocations: 312.8 kB / 0.5171 GB, free: 15.28 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.652e-05/1.075, allocations: 4.781 kB / 0.5171 GB, free: 15.28 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.867e-06/1.075, allocations: 1.875 kB / 0.5171 GB, free: 15.28 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.989e-05/1.076, allocations: 68.86 kB / 0.5171 GB, free: 15.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/1.076, allocations: 0 / 0.5171 GB, free: 15.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.897e-05/1.076, allocations: 62.06 kB / 0.5172 GB, free: 15.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.615e-05/1.076, allocations: 34.52 kB / 0.5172 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/1.076, allocations: 0 / 0.5172 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.411e-05/1.076, allocations: 3.688 kB / 0.5172 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.324e-06/1.076, allocations: 0 / 0.5172 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/1.076, allocations: 3.047 kB / 0.5172 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.682e-05/1.076, allocations: 1.281 kB / 0.5172 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.492e-05/1.076, allocations: 0 / 0.5172 GB, free: 15.11 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 0.0001133/1.076, allocations: 143.5 kB / 0.5174 GB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.218e-05/1.076, allocations: 1.344 kB / 0.5174 GB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.614e-05/1.076, allocations: 6.438 kB / 0.5174 GB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/1.076, allocations: 3.688 kB / 0.5174 GB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.425e-06/1.076, allocations: 1.531 kB / 0.5174 GB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/1.076, allocations: 2.625 kB / 0.5174 GB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.534e-05/1.076, allocations: 152.7 kB / 0.5175 GB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/1.076, allocations: 0 / 0.5175 GB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.865e-06/1.076, allocations: 4.891 kB / 0.5175 GB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/1.076, allocations: 0 / 0.5175 GB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.966e-06/1.076, allocations: 3.938 kB / 0.5175 GB, free: 14.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/1.076, allocations: 4.281 kB / 0.5176 GB, free: 14.76 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/1.076, allocations: 0 / 0.5176 GB, free: 14.76 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001193/1.076, allocations: 102.1 kB / 0.5176 GB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.587e-05/1.076, allocations: 78.3 kB / 0.5177 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.803e-05/1.076, allocations: 1.219 kB / 0.5177 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.337e-05/1.076, allocations: 3 kB / 0.5177 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.537e-05/1.076, allocations: 2.844 kB / 0.5177 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.199e-06/1.076, allocations: 4.969 kB / 0.5177 GB, free: 14.57 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.138e-05/1.076, allocations: 75.53 kB / 0.5178 GB, free: 14.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.076, allocations: 4 kB / 0.5178 GB, free: 14.49 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.04527/1.122, allocations: 3.775 MB / 0.5215 GB, free: 14.41 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.07953/1.201, allocations: 0.9634 MB / 0.5224 GB, free: 14.19 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002951/1.202, allocations: 66.06 kB / 0.5225 GB, free: 14.13 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/1.202, allocations: 0 / 0.5225 GB, free: 14.13 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.764e-05/1.202, allocations: 55.22 kB / 0.5226 GB, free: 14.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002264/1.202, allocations: 8.906 kB / 0.5226 GB, free: 14.06 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004421/1.203, allocations: 107 kB / 0.5227 GB, free: 13.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002911/1.203, allocations: 0.6743 MB / 0.5233 GB, free: 13.24 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.116e-05/1.203, allocations: 10.59 kB / 0.5233 GB, free: 13.23 MB / 382.1 MB Notification: Performance of SimCode: time 2.855e-06/1.203, allocations: 0 / 0.5233 GB, free: 13.23 MB / 382.1 MB Notification: Performance of Templates: time 0.199/1.402, allocations: 64.88 MB / 0.5867 GB, free: 3.492 MB / 430.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Math.TestMatrices2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches