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.001247/0.001247, allocations: 111.8 kB / 18.45 MB, free: 4.602 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.001366/0.001366, allocations: 182.3 kB / 19.38 MB, free: 3.684 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.312/1.312, allocations: 222.9 MB / 243.1 MB, free: 15.05 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.2073/0.2073, allocations: 44.19 MB / 337.4 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 63.89 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2855/0.2868, allocations: 60.81 MB / 0.5195 GB, free: 3.871 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001741/0.2885, allocations: 0.5036 MB / 0.52 GB, free: 3.562 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001973/0.2905, allocations: 1.55 MB / 0.5215 GB, free: 2.445 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.801e-05/0.2906, allocations: 0 / 0.5215 GB, free: 2.445 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.277e-05/0.2906, allocations: 4 kB / 0.5215 GB, free: 2.441 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.402e-06/0.2906, allocations: 1.156 kB / 0.5215 GB, free: 2.441 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.0009979/0.2916, allocations: 276 kB / 0.5218 GB, free: 2.355 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.584e-05/0.2917, allocations: 5.312 kB / 0.5218 GB, free: 2.352 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.73e-05/0.2917, allocations: 2.188 kB / 0.5218 GB, free: 2.352 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.445e-05/0.2918, allocations: 1.125 kB / 0.5218 GB, free: 2.352 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.898e-05/0.2918, allocations: 0 / 0.5218 GB, free: 2.352 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.793e-06/0.2918, allocations: 5.062 kB / 0.5218 GB, free: 2.348 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007328/0.2925, allocations: 0.4895 MB / 0.5223 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.682e-06/0.2925, allocations: 0 / 0.5223 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.47e-05/0.2926, allocations: 5.297 kB / 0.5223 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004249/0.293, allocations: 299.9 kB / 0.5226 GB, free: 2.172 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.293, allocations: 0 / 0.5226 GB, free: 2.172 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.293, allocations: 1.75 kB / 0.5226 GB, free: 2.172 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.106e-06/0.293, allocations: 0 / 0.5226 GB, free: 2.172 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.0002685/0.2933, allocations: 380.5 kB / 0.523 GB, free: 1.762 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.2934, allocations: 10.02 kB / 0.523 GB, free: 1.762 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.609e-05/0.2934, allocations: 2.031 kB / 0.523 GB, free: 1.762 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.745e-05/0.2934, allocations: 161.5 kB / 0.5231 GB, free: 1.566 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.12e-05/0.2935, allocations: 1.438 kB / 0.5231 GB, free: 1.566 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.087e-05/0.2935, allocations: 1.5 kB / 0.5231 GB, free: 1.566 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.7e-05/0.2936, allocations: 33.95 kB / 0.5232 GB, free: 1.531 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.2936, allocations: 0 / 0.5232 GB, free: 1.531 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.395e-06/0.2936, allocations: 0 / 0.5232 GB, free: 1.531 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.2936, allocations: 6.188 kB / 0.5232 GB, free: 1.527 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.613e-05/0.2936, allocations: 5.438 kB / 0.5232 GB, free: 1.523 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.835e-05/0.2937, allocations: 147 kB / 0.5233 GB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.424e-05/0.2937, allocations: 17.72 kB / 0.5233 GB, free: 1.309 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.173e-05/0.2938, allocations: 6.781 kB / 0.5233 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.283e-06/0.2938, allocations: 0 / 0.5233 GB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.934e-05/0.2938, allocations: 67.09 kB / 0.5234 GB, free: 1.223 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.2938, allocations: 0 / 0.5234 GB, free: 1.223 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001385/0.2939, allocations: 68.73 kB / 0.5235 GB, free: 1.152 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.395e-05/0.294, allocations: 78.75 kB / 0.5235 GB, free: 1.059 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.763e-05/0.294, allocations: 89.86 kB / 0.5236 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.45e-06/0.294, allocations: 27.05 kB / 0.5236 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.015e-05/0.294, allocations: 80.8 kB / 0.5237 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.459e-05/0.294, allocations: 1.25 kB / 0.5237 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.126e-05/0.2941, allocations: 11.94 kB / 0.5237 GB, free: 0.832 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.668e-05/0.2941, allocations: 316.6 kB / 0.524 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.617e-06/0.2941, allocations: 1.25 kB / 0.524 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.98e-06/0.2941, allocations: 1.188 kB / 0.524 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.06e-05/0.2942, allocations: 63.95 kB / 0.5241 GB, free: 452 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2942, allocations: 5.094 kB / 0.5241 GB, free: 448 kB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.059e-05/0.2942, allocations: 64.17 kB / 0.5242 GB, free: 380 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/0.2943, allocations: 36.11 kB / 0.5242 GB, free: 344 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.2943, allocations: 12.08 kB / 0.5242 GB, free: 332 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.2943, allocations: 0 / 0.5242 GB, free: 332 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.655e-06/0.2943, allocations: 2.375 kB / 0.5242 GB, free: 332 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.549e-06/0.2943, allocations: 3.938 kB / 0.5242 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.408e-05/0.2943, allocations: 0 / 0.5242 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-06/0.2943, allocations: 1.594 kB / 0.5242 GB, free: 328 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 4.516e-05/0.2944, allocations: 138.7 kB / 0.5244 GB, free: 176 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.085e-06/0.2944, allocations: 9.391 kB / 0.5244 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.977e-06/0.2944, allocations: 3.781 kB / 0.5244 GB, free: 164 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.2944, allocations: 5.062 kB / 0.5244 GB, free: 160 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.2944, allocations: 0 / 0.5244 GB, free: 160 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.2944, allocations: 2.141 kB / 0.5244 GB, free: 160 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.28e-05/0.2945, allocations: 149 kB / 0.5245 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.22e-07/0.2945, allocations: 0 / 0.5245 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.2945, allocations: 0 / 0.5245 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.2945, allocations: 5.219 kB / 0.5245 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.055e-06/0.2946, allocations: 2.016 kB / 0.5245 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.2946, allocations: 0 / 0.5245 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.2946, allocations: 0 / 0.5245 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001001/0.2947, allocations: 96.97 kB / 0.5246 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.132e-05/0.2947, allocations: 79.03 kB / 0.5247 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.294e-05/0.2947, allocations: 5.156 kB / 0.5247 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.829e-06/0.2947, allocations: 0.8438 kB / 0.5247 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.389e-05/0.2948, allocations: 1.031 kB / 0.5247 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.905e-06/0.2948, allocations: 1.344 kB / 0.5247 GB, free: 15.76 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.3e-05/0.2948, allocations: 75.28 kB / 0.5248 GB, free: 15.68 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2948, allocations: 32 / 0.5248 GB, free: 15.68 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003232/0.2951, allocations: 71.44 kB / 0.5248 GB, free: 15.66 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.0004212/0.2956, allocations: 186.4 kB / 0.525 GB, free: 15.55 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.274e-05/0.2957, allocations: 57.83 kB / 0.5251 GB, free: 15.48 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2957, allocations: 0 / 0.5251 GB, free: 15.48 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.405e-05/0.2957, allocations: 63.42 kB / 0.5251 GB, free: 15.41 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001261/0.2958, allocations: 3 kB / 0.5251 GB, free: 15.41 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001578/0.296, allocations: 98.44 kB / 0.5252 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002256/0.2962, allocations: 0.6786 MB / 0.5259 GB, free: 14.59 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.099e-05/0.2963, allocations: 8.812 kB / 0.5259 GB, free: 14.58 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2963, allocations: 0 / 0.5259 GB, free: 14.58 MB / 398.1 MB Notification: Performance of Templates: time 0.002815/0.2991, allocations: 1.262 MB / 0.5271 GB, free: 14.3 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestMatrices/TestMatrices.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches