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.001066/0.001066, allocations: 113.8 kB / 17.78 MB, free: 5.277 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.001092/0.001092, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.368/1.368, allocations: 222.9 MB / 242.4 MB, free: 15.12 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.2123/0.2123, allocations: 44.18 MB / 336.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 67.89 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4183/0.4195, allocations: 60.82 MB / 0.5189 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001541/0.4211, allocations: 0.4891 MB / 0.5194 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001836/0.4229, allocations: 1.561 MB / 0.5209 GB, free: 2.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.97e-05/0.4229, allocations: 1.031 kB / 0.5209 GB, free: 2.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.277e-05/0.4229, allocations: 4 kB / 0.5209 GB, free: 2.176 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.991e-06/0.4229, allocations: 3.938 kB / 0.5209 GB, free: 2.172 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.0008705/0.4238, allocations: 269.3 kB / 0.5212 GB, free: 2.094 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.026e-05/0.4238, allocations: 1.188 kB / 0.5212 GB, free: 2.094 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.939e-05/0.4239, allocations: 1.938 kB / 0.5212 GB, free: 2.094 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.786e-05/0.4239, allocations: 5.703 kB / 0.5212 GB, free: 2.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.966e-05/0.4239, allocations: 0 / 0.5212 GB, free: 2.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.671e-06/0.4239, allocations: 5.125 kB / 0.5212 GB, free: 2.086 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007773/0.4247, allocations: 0.4886 MB / 0.5216 GB, free: 1.973 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.804e-06/0.4247, allocations: 0 / 0.5216 GB, free: 1.973 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.967e-05/0.4247, allocations: 1.594 kB / 0.5216 GB, free: 1.973 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004808/0.4252, allocations: 300.6 kB / 0.5219 GB, free: 1.918 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.4252, allocations: 0 / 0.5219 GB, free: 1.918 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.4252, allocations: 1.125 kB / 0.5219 GB, free: 1.918 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.4252, allocations: 0.8438 kB / 0.5219 GB, free: 1.918 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.000287/0.4255, allocations: 384.7 kB / 0.5223 GB, free: 1.504 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.4256, allocations: 9.578 kB / 0.5223 GB, free: 1.504 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.957e-05/0.4256, allocations: 6.266 kB / 0.5223 GB, free: 1.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.052e-05/0.4256, allocations: 161.7 kB / 0.5225 GB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.494e-06/0.4256, allocations: 384 / 0.5225 GB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.999e-06/0.4256, allocations: 1.625 kB / 0.5225 GB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.316e-05/0.4257, allocations: 34.03 kB / 0.5225 GB, free: 1.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.4257, allocations: 0 / 0.5225 GB, free: 1.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.004e-06/0.4257, allocations: 0 / 0.5225 GB, free: 1.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.4257, allocations: 5.375 kB / 0.5225 GB, free: 1.266 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.752e-05/0.4258, allocations: 5.828 kB / 0.5225 GB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.063e-05/0.4258, allocations: 148.5 kB / 0.5227 GB, free: 1.07 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.412e-05/0.4259, allocations: 17.06 kB / 0.5227 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.456e-05/0.4259, allocations: 6.984 kB / 0.5227 GB, free: 1.039 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.314e-06/0.4259, allocations: 0 / 0.5227 GB, free: 1.039 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.846e-05/0.4259, allocations: 66.09 kB / 0.5227 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.4259, allocations: 0 / 0.5227 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001454/0.4261, allocations: 69.34 kB / 0.5228 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.529e-05/0.4261, allocations: 77.72 kB / 0.5229 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.114e-05/0.4261, allocations: 91.94 kB / 0.523 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.751e-06/0.4261, allocations: 29.64 kB / 0.523 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.568e-06/0.4261, allocations: 80.14 kB / 0.5231 GB, free: 0.582 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.777e-05/0.4261, allocations: 1.25 kB / 0.5231 GB, free: 0.582 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.315e-05/0.4262, allocations: 15.75 kB / 0.5231 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.153e-05/0.4262, allocations: 316.8 kB / 0.5234 GB, free: 252 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.077e-05/0.4262, allocations: 2.094 kB / 0.5234 GB, free: 252 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.511e-06/0.4262, allocations: 4 kB / 0.5234 GB, free: 248 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.207e-05/0.4263, allocations: 61.77 kB / 0.5235 GB, free: 176 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.4263, allocations: 0 / 0.5235 GB, free: 176 kB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.212e-05/0.4263, allocations: 68.22 kB / 0.5235 GB, free: 104 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.4263, allocations: 34.86 kB / 0.5236 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.4263, allocations: 5.875 kB / 0.5236 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/0.4264, allocations: 0 / 0.5236 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.323e-06/0.4264, allocations: 5.062 kB / 0.5236 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.625e-05/0.4264, allocations: 0.6562 kB / 0.5236 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.551e-05/0.4264, allocations: 1.094 kB / 0.5236 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.031e-06/0.4264, allocations: 0 / 0.5236 GB, free: 60 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 8.646e-05/0.4265, allocations: 135.1 kB / 0.5237 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.706e-06/0.4265, allocations: 9.047 kB / 0.5237 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.234e-05/0.4265, allocations: 5.031 kB / 0.5237 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.4265, allocations: 4 kB / 0.5237 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.4265, allocations: 0.75 kB / 0.5237 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.743e-06/0.4265, allocations: 1.25 kB / 0.5237 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.595e-05/0.4266, allocations: 145.3 kB / 0.5239 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.4266, allocations: 0 / 0.5239 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.2e-07/0.4266, allocations: 0 / 0.5239 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.4266, allocations: 4.844 kB / 0.5239 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.4266, allocations: 2.062 kB / 0.5239 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.4266, allocations: 0 / 0.5239 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4266, allocations: 0.6562 kB / 0.5239 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001082/0.4267, allocations: 97.47 kB / 0.524 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.741e-05/0.4268, allocations: 77.86 kB / 0.524 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.537e-05/0.4268, allocations: 5.25 kB / 0.524 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.219e-05/0.4268, allocations: 4.797 kB / 0.524 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.664e-05/0.4268, allocations: 1 kB / 0.524 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.417e-06/0.4268, allocations: 1.031 kB / 0.524 GB, free: 15.5 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.068e-05/0.4268, allocations: 76.12 kB / 0.5241 GB, free: 15.43 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4268, allocations: 5.031 kB / 0.5241 GB, free: 15.42 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003756/0.4272, allocations: 61.66 kB / 0.5242 GB, free: 15.41 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.0005011/0.4277, allocations: 204.9 kB / 0.5244 GB, free: 15.27 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001107/0.4278, allocations: 64.77 kB / 0.5244 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.4278, allocations: 0 / 0.5244 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.518e-05/0.4279, allocations: 56.75 kB / 0.5245 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000127/0.428, allocations: 5.812 kB / 0.5245 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001803/0.4282, allocations: 75.56 kB / 0.5246 GB, free: 15.05 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00027/0.4284, allocations: 0.6776 MB / 0.5252 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.292e-06/0.4284, allocations: 0 / 0.5252 GB, free: 14.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.948e-06/0.4284, allocations: 7.438 kB / 0.5252 GB, free: 14.34 MB / 398.1 MB Notification: Performance of SimCode: time 2.9e-07/0.4284, allocations: 2.938 kB / 0.5252 GB, free: 14.34 MB / 398.1 MB Notification: Performance of Templates: time 0.004264/0.4327, allocations: 1.279 MB / 0.5265 GB, free: 14.06 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