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.0009259/0.000926, allocations: 96.42 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001186/0.001186, allocations: 207.6 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.7 MB / 247.5 MB, free: 11.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2003/0.2003, allocations: 46.19 MB / 345.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002822/0.0002821, allocations: 8 kB / 420.2 MB, free: 19.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.11, allocations: 63.56 MB / 483.7 MB, free: 4.207 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.0006123/0.1107, allocations: 209.4 kB / 483.9 MB, free: 4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007388/0.1181, allocations: 5.087 MB / 489 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.058e-05/0.1181, allocations: 0 / 489 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.464e-05/0.1182, allocations: 0 / 489 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 4.939e-06/0.1182, allocations: 3.938 kB / 489 MB, free: 14.88 MB / 366.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.006006/0.1242, allocations: 2.573 MB / 491.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 3.756e-05/0.1242, allocations: 11.98 kB / 491.6 MB, free: 12.31 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.338e-05/0.1243, allocations: 0 / 491.6 MB, free: 12.31 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.587e-05/0.1243, allocations: 0 / 491.6 MB, free: 12.31 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.619e-05/0.1243, allocations: 0 / 491.6 MB, free: 12.31 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.979e-06/0.1243, allocations: 4 kB / 491.6 MB, free: 12.31 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0288/0.1531, allocations: 18.22 MB / 0.4979 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.164e-05/0.1532, allocations: 0 / 0.4979 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.608e-05/0.1532, allocations: 29.7 kB / 0.4979 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2355/0.3888, allocations: 20.35 MB / 0.5178 GB, free: 16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.85e-06/0.3888, allocations: 3.188 kB / 0.5178 GB, free: 16 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.426e-06/0.3888, allocations: 0 / 0.5178 GB, free: 16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.3888, allocations: 1.188 kB / 0.5178 GB, free: 16 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.01397/0.4028, allocations: 0.649 MB / 0.5184 GB, free: 15.51 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.4029, allocations: 10.31 kB / 0.5184 GB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.572e-05/0.4029, allocations: 2.125 kB / 0.5184 GB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.085e-05/0.403, allocations: 166.5 kB / 0.5186 GB, free: 15.31 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.369e-05/0.403, allocations: 1.062 kB / 0.5186 GB, free: 15.31 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.058e-05/0.403, allocations: 4.375 kB / 0.5186 GB, free: 15.31 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.244e-05/0.4031, allocations: 32.53 kB / 0.5186 GB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.121e-06/0.4031, allocations: 3.734 kB / 0.5186 GB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.366e-06/0.4031, allocations: 1.312 kB / 0.5186 GB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.4031, allocations: 1.125 kB / 0.5186 GB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.846e-05/0.4032, allocations: 2.625 kB / 0.5186 GB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.451e-05/0.4032, allocations: 151 kB / 0.5188 GB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.425e-05/0.4033, allocations: 21.06 kB / 0.5188 GB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.343e-05/0.4033, allocations: 10.7 kB / 0.5188 GB, free: 15.06 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.652e-06/0.4033, allocations: 1.531 kB / 0.5188 GB, free: 15.06 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.503e-05/0.4034, allocations: 57.83 kB / 0.5189 GB, free: 14.99 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.4034, allocations: 0 / 0.5189 GB, free: 14.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001407/0.4035, allocations: 72.73 kB / 0.5189 GB, free: 14.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.742e-05/0.4035, allocations: 77.73 kB / 0.519 GB, free: 14.83 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.052e-05/0.4036, allocations: 90.55 kB / 0.5191 GB, free: 14.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.915e-06/0.4036, allocations: 27.08 kB / 0.5191 GB, free: 14.7 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.506e-06/0.4036, allocations: 86.72 kB / 0.5192 GB, free: 14.62 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.715e-05/0.4036, allocations: 4.969 kB / 0.5192 GB, free: 14.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.782e-05/0.4037, allocations: 9.719 kB / 0.5192 GB, free: 14.61 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.961e-05/0.4037, allocations: 313.5 kB / 0.5195 GB, free: 14.29 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.316e-06/0.4037, allocations: 1.188 kB / 0.5195 GB, free: 14.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.071e-06/0.4037, allocations: 3.062 kB / 0.5195 GB, free: 14.29 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.057e-05/0.4038, allocations: 67.25 kB / 0.5196 GB, free: 14.22 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.4038, allocations: 1.031 kB / 0.5196 GB, free: 14.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.621e-05/0.4038, allocations: 63.53 kB / 0.5196 GB, free: 14.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.413e-05/0.4039, allocations: 31.92 kB / 0.5197 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.4039, allocations: 0.9688 kB / 0.5197 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.052e-05/0.4039, allocations: 0 / 0.5197 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.302e-06/0.4039, allocations: 4.531 kB / 0.5197 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.008e-06/0.4039, allocations: 0 / 0.5197 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.715e-05/0.4039, allocations: 1.969 kB / 0.5197 GB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.291e-06/0.4039, allocations: 3.234 kB / 0.5197 GB, free: 14.12 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 4.67e-05/0.404, allocations: 138.3 kB / 0.5198 GB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.003e-06/0.404, allocations: 1.625 kB / 0.5198 GB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.308e-06/0.404, allocations: 7.938 kB / 0.5198 GB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.404, allocations: 224 / 0.5198 GB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.404, allocations: 4.969 kB / 0.5198 GB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.924e-06/0.404, allocations: 0 / 0.5198 GB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.147e-05/0.4041, allocations: 156.4 kB / 0.52 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.4041, allocations: 0 / 0.52 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.4041, allocations: 0 / 0.52 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.4041, allocations: 1.688 kB / 0.52 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.56e-06/0.4041, allocations: 0 / 0.52 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.4041, allocations: 1.344 kB / 0.52 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.4041, allocations: 7.594 kB / 0.52 GB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.855e-05/0.4042, allocations: 97.41 kB / 0.5201 GB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.344e-05/0.4042, allocations: 77.86 kB / 0.5202 GB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.244e-05/0.4042, allocations: 5.078 kB / 0.5202 GB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.808e-06/0.4043, allocations: 1.312 kB / 0.5202 GB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.417e-05/0.4043, allocations: 0 / 0.5202 GB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-06/0.4043, allocations: 1.25 kB / 0.5202 GB, free: 13.58 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.105e-05/0.4043, allocations: 76.44 kB / 0.5202 GB, free: 13.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4043, allocations: 0 / 0.5202 GB, free: 13.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.01852/0.4228, allocations: 3.774 MB / 0.5239 GB, free: 13.42 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.03115/0.454, allocations: 0.978 MB / 0.5249 GB, free: 13.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000102/0.4541, allocations: 59.38 kB / 0.5249 GB, free: 13.13 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4541, allocations: 0 / 0.5249 GB, free: 13.13 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.869e-05/0.4542, allocations: 55.31 kB / 0.525 GB, free: 13.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001485/0.4543, allocations: 3.938 kB / 0.525 GB, free: 13.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001536/0.4545, allocations: 110.3 kB / 0.5251 GB, free: 12.94 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.064e-05/0.4546, allocations: 0.673 MB / 0.5258 GB, free: 12.24 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.03e-05/0.4546, allocations: 10.78 kB / 0.5258 GB, free: 12.24 MB / 382.1 MB Notification: Performance of SimCode: time 2e-07/0.4546, allocations: 0 / 0.5258 GB, free: 12.24 MB / 382.1 MB Notification: Performance of Templates: time 0.09192/0.5465, allocations: 64.89 MB / 0.5891 GB, free: 2.219 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