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.001335/0.001335, allocations: 115.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00157/0.00157, allocations: 199.5 kB / 19.36 MB, free: 3.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2161/0.2161, allocations: 46.11 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001272, allocations: 80 kB / 419 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.108, allocations: 62.44 MB / 481.5 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001585/0.1097, allocations: 490.9 kB / 481.9 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006415/0.1161, allocations: 4.881 MB / 486.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.609e-05/0.1161, allocations: 0 / 486.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.352e-05/0.1161, allocations: 7.938 kB / 486.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 4.258e-06/0.1162, allocations: 4 kB / 486.8 MB, free: 15.13 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.005644/0.1218, allocations: 2.931 MB / 489.8 MB, free: 12.21 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 3.459e-05/0.1219, allocations: 7.984 kB / 489.8 MB, free: 12.2 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.732e-05/0.1219, allocations: 0 / 489.8 MB, free: 12.2 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.367e-06/0.1219, allocations: 0 / 489.8 MB, free: 12.2 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.049e-05/0.1219, allocations: 0 / 489.8 MB, free: 12.2 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.208e-06/0.1219, allocations: 0 / 489.8 MB, free: 12.2 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02404/0.146, allocations: 18.82 MB / 0.4967 GB, free: 9.367 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.848e-06/0.146, allocations: 3.938 kB / 0.4967 GB, free: 9.363 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.231e-05/0.146, allocations: 7.938 kB / 0.4967 GB, free: 9.355 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2311/0.3772, allocations: 27.47 MB / 0.5235 GB, free: 27.46 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.116e-05/0.3773, allocations: 3.188 kB / 0.5235 GB, free: 27.46 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.048e-06/0.3773, allocations: 0 / 0.5235 GB, free: 27.46 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.299e-05/0.3773, allocations: 0 / 0.5235 GB, free: 27.46 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.01176/0.3891, allocations: 0.6465 MB / 0.5241 GB, free: 26.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.3891, allocations: 8.656 kB / 0.5241 GB, free: 26.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.598e-05/0.3891, allocations: 4.922 kB / 0.5241 GB, free: 26.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.838e-05/0.3892, allocations: 172.6 kB / 0.5243 GB, free: 26.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.3892, allocations: 0 / 0.5243 GB, free: 26.71 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.895e-06/0.3892, allocations: 1.047 kB / 0.5243 GB, free: 26.71 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.197e-05/0.3893, allocations: 34.23 kB / 0.5243 GB, free: 26.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.262e-06/0.3893, allocations: 0 / 0.5243 GB, free: 26.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.484e-06/0.3893, allocations: 0 / 0.5243 GB, free: 26.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.3893, allocations: 0 / 0.5243 GB, free: 26.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.536e-05/0.3894, allocations: 4.375 kB / 0.5244 GB, free: 26.68 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.206e-05/0.3895, allocations: 157.3 kB / 0.5245 GB, free: 26.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.066e-05/0.3895, allocations: 18.52 kB / 0.5245 GB, free: 26.46 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.151e-05/0.3895, allocations: 4.859 kB / 0.5245 GB, free: 26.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.284e-06/0.3895, allocations: 3.25 kB / 0.5245 GB, free: 26.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.524e-05/0.3896, allocations: 59.39 kB / 0.5246 GB, free: 26.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.3896, allocations: 0 / 0.5246 GB, free: 26.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001395/0.3897, allocations: 69.11 kB / 0.5246 GB, free: 26.31 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.872e-05/0.3897, allocations: 79.45 kB / 0.5247 GB, free: 26.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.601e-05/0.3898, allocations: 90.61 kB / 0.5248 GB, free: 26.12 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.893e-06/0.3898, allocations: 25.7 kB / 0.5248 GB, free: 26.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.054e-05/0.3898, allocations: 85.73 kB / 0.5249 GB, free: 26.01 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.44e-05/0.3898, allocations: 1.094 kB / 0.5249 GB, free: 26.01 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.444e-05/0.3898, allocations: 16.97 kB / 0.5249 GB, free: 25.99 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.713e-05/0.3899, allocations: 310.8 kB / 0.5252 GB, free: 25.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.726e-06/0.3899, allocations: 3.281 kB / 0.5252 GB, free: 25.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.013e-06/0.3899, allocations: 10.3 kB / 0.5252 GB, free: 25.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.904e-05/0.3899, allocations: 64.73 kB / 0.5253 GB, free: 25.6 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.39, allocations: 1.75 kB / 0.5253 GB, free: 25.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.806e-05/0.39, allocations: 58.25 kB / 0.5254 GB, free: 25.54 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.683e-05/0.39, allocations: 32.95 kB / 0.5254 GB, free: 25.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.3901, allocations: 6.703 kB / 0.5254 GB, free: 25.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.3901, allocations: 0.6562 kB / 0.5254 GB, free: 25.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.31e-07/0.3901, allocations: 3.656 kB / 0.5254 GB, free: 25.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.937e-06/0.3901, allocations: 1.375 kB / 0.5254 GB, free: 25.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.558e-05/0.3901, allocations: 3.75 kB / 0.5254 GB, free: 25.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.63e-06/0.3901, allocations: 3.938 kB / 0.5254 GB, free: 25.5 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.206e-05/0.3902, allocations: 139.2 kB / 0.5255 GB, free: 25.35 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.394e-06/0.3902, allocations: 3.812 kB / 0.5255 GB, free: 25.35 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.338e-06/0.3902, allocations: 3.125 kB / 0.5256 GB, free: 25.35 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.81e-07/0.3902, allocations: 0 / 0.5256 GB, free: 25.35 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.3902, allocations: 0 / 0.5256 GB, free: 25.35 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-06/0.3902, allocations: 0 / 0.5256 GB, free: 25.35 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.42e-05/0.3903, allocations: 162.7 kB / 0.5257 GB, free: 25.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.3903, allocations: 0 / 0.5257 GB, free: 25.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3903, allocations: 0 / 0.5257 GB, free: 25.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.3903, allocations: 0.875 kB / 0.5257 GB, free: 25.15 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.981e-06/0.3903, allocations: 0 / 0.5257 GB, free: 25.15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.3903, allocations: 1.781 kB / 0.5257 GB, free: 25.15 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3903, allocations: 0 / 0.5257 GB, free: 25.15 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.125e-05/0.3904, allocations: 97.86 kB / 0.5258 GB, free: 25.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.185e-05/0.3904, allocations: 77.61 kB / 0.5259 GB, free: 24.96 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.204e-05/0.3904, allocations: 3.594 kB / 0.5259 GB, free: 24.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.002e-05/0.3904, allocations: 0.8438 kB / 0.5259 GB, free: 24.96 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.275e-05/0.3904, allocations: 0 / 0.5259 GB, free: 24.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.397e-06/0.3904, allocations: 6.172 kB / 0.5259 GB, free: 24.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.002e-05/0.3905, allocations: 79.78 kB / 0.526 GB, free: 24.88 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3905, allocations: 1.406 kB / 0.526 GB, free: 24.88 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.01461/0.4051, allocations: 3.776 MB / 0.5297 GB, free: 21.19 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.03592/0.441, allocations: 0.9709 MB / 0.5306 GB, free: 20.36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001339/0.4412, allocations: 62.97 kB / 0.5307 GB, free: 20.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4412, allocations: 0 / 0.5307 GB, free: 20.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.05e-05/0.4412, allocations: 54.97 kB / 0.5307 GB, free: 20.22 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001474/0.4414, allocations: 12 kB / 0.5307 GB, free: 20.21 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000181/0.4416, allocations: 81.72 kB / 0.5308 GB, free: 20.11 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.385e-05/0.4417, allocations: 0.669 MB / 0.5315 GB, free: 19.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.771e-06/0.4417, allocations: 0 / 0.5315 GB, free: 19.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.025e-05/0.4417, allocations: 11.44 kB / 0.5315 GB, free: 19.4 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.4417, allocations: 0 / 0.5315 GB, free: 19.4 MB / 382.1 MB Notification: Performance of Templates: time 0.1553/0.5971, allocations: 112.6 MB / 0.6414 GB, free: 2.664 MB / 478.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 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe 2>&1)