Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.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.TestMatrices2b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b") translateModel(ModelicaTest.Math.TestMatrices2b,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 104.5 kB / 17.63 MB, free: 5.344 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.0012/0.0012, allocations: 192 kB / 18.56 MB, free: 4.434 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.355/1.355, allocations: 222.9 MB / 242.2 MB, free: 15.16 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.2052/0.2052, allocations: 44.19 MB / 336.6 MB, free: 2.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 64.19 kB / 408.4 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1172, allocations: 60.82 MB / 469.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.002003/0.1192, allocations: 498.9 kB / 469.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002801/0.1221, allocations: 2.093 MB / 471.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.035e-05/0.1221, allocations: 3.938 kB / 471.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.14e-05/0.1221, allocations: 4 kB / 471.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.59e-06/0.1222, allocations: 0 / 471.8 MB, free: 11.76 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:485:3-574:17:writable] Warning: Pure function 'ModelicaTest.Math.Matrices2b' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001886/0.1241, allocations: 0.7201 MB / 472.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.073e-05/0.1241, allocations: 0 / 472.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.441e-05/0.1242, allocations: 11.98 kB / 472.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.74e-05/0.1242, allocations: 3.938 kB / 472.6 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.964e-05/0.1242, allocations: 0 / 472.6 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.57e-06/0.1242, allocations: 0 / 472.6 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001762/0.126, allocations: 1.416 MB / 474 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.993e-06/0.126, allocations: 0 / 474 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.863e-05/0.126, allocations: 0 / 474 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001341/0.1274, allocations: 1.56 MB / 475.5 MB, free: 8.051 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.1274, allocations: 3.938 kB / 475.5 MB, free: 8.047 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.1274, allocations: 0 / 475.5 MB, free: 8.047 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5e-06/0.1274, allocations: 3.938 kB / 475.5 MB, free: 8.043 MB / 350.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.0005347/0.1279, allocations: 417.2 kB / 476 MB, free: 7.582 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.128, allocations: 12.03 kB / 476 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.234e-05/0.128, allocations: 0.9375 kB / 476 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.744e-05/0.1281, allocations: 160.4 kB / 476.1 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.1282, allocations: 4.375 kB / 476.1 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.218e-05/0.1282, allocations: 4.125 kB / 476.1 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.03e-05/0.1283, allocations: 29.69 kB / 476.2 MB, free: 7.332 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.1283, allocations: 0 / 476.2 MB, free: 7.332 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.1283, allocations: 4 kB / 476.2 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.1283, allocations: 0 / 476.2 MB, free: 7.328 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.123e-05/0.1283, allocations: 7.938 kB / 476.2 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001328/0.1285, allocations: 141.7 kB / 476.3 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.881e-05/0.1285, allocations: 22.61 kB / 476.3 MB, free: 7.102 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.681e-05/0.1285, allocations: 12.78 kB / 476.3 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.443e-06/0.1286, allocations: 0 / 476.3 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.279e-05/0.1286, allocations: 60.33 kB / 476.4 MB, free: 7.012 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.1286, allocations: 0 / 476.4 MB, free: 7.012 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001645/0.1288, allocations: 63.34 kB / 476.5 MB, free: 6.938 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.278e-05/0.1288, allocations: 81.11 kB / 476.5 MB, free: 6.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.769e-05/0.1289, allocations: 97.84 kB / 476.6 MB, free: 6.734 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.213e-05/0.1289, allocations: 29.64 kB / 476.7 MB, free: 6.699 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.415e-05/0.1289, allocations: 84.14 kB / 476.8 MB, free: 6.613 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.63e-05/0.129, allocations: 3.906 kB / 476.8 MB, free: 6.609 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.504e-05/0.129, allocations: 13.72 kB / 476.8 MB, free: 6.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.1291, allocations: 311 kB / 477.1 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.326e-06/0.1291, allocations: 4 kB / 477.1 MB, free: 6.273 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.01e-06/0.1291, allocations: 0 / 477.1 MB, free: 6.273 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.592e-05/0.1292, allocations: 64.27 kB / 477.1 MB, free: 6.195 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.1292, allocations: 0 / 477.1 MB, free: 6.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.215e-05/0.1293, allocations: 71.27 kB / 477.2 MB, free: 6.113 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.784e-05/0.1293, allocations: 33.14 kB / 477.2 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.1293, allocations: 0 / 477.2 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.1293, allocations: 0 / 477.2 MB, free: 6.078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.405e-06/0.1293, allocations: 8.094 kB / 477.2 MB, free: 6.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.651e-05/0.1294, allocations: 0 / 477.2 MB, free: 6.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.367e-05/0.1294, allocations: 0 / 477.2 MB, free: 6.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-06/0.1294, allocations: 0 / 477.2 MB, free: 6.07 MB / 350.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 7.734e-05/0.1295, allocations: 139.8 kB / 477.4 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.717e-06/0.1295, allocations: 3.938 kB / 477.4 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.003e-05/0.1295, allocations: 7.062 kB / 477.4 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-06/0.1295, allocations: 0 / 477.4 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.187e-06/0.1295, allocations: 0 / 477.4 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.1295, allocations: 4 kB / 477.4 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.979e-05/0.1296, allocations: 153.7 kB / 477.5 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.1296, allocations: 3.938 kB / 477.6 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.1296, allocations: 0 / 477.6 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.62e-07/0.1296, allocations: 0 / 477.6 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.1296, allocations: 4 kB / 477.6 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.1297, allocations: 0 / 477.6 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.1297, allocations: 0 / 477.6 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.825e-05/0.1297, allocations: 98.77 kB / 477.7 MB, free: 5.574 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.041e-05/0.1298, allocations: 84.98 kB / 477.7 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.242e-05/0.1298, allocations: 3.984 kB / 477.7 MB, free: 5.469 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.166e-06/0.1298, allocations: 4 kB / 477.7 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.196e-05/0.1298, allocations: 0 / 477.7 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.028e-06/0.1298, allocations: 0 / 477.7 MB, free: 5.465 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.193e-05/0.1299, allocations: 79.22 kB / 477.8 MB, free: 5.387 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1299, allocations: 0 / 477.8 MB, free: 5.387 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007708/0.1307, allocations: 272 kB / 478.1 MB, free: 5.121 MB / 350.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.001182/0.1318, allocations: 407.7 kB / 478.5 MB, free: 4.727 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.889e-05/0.1319, allocations: 63.33 kB / 478.5 MB, free: 4.652 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1319, allocations: 0 / 478.5 MB, free: 4.652 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.676e-05/0.132, allocations: 55.41 kB / 478.6 MB, free: 4.586 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001143/0.1321, allocations: 3.938 kB / 478.6 MB, free: 4.582 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001524/0.1323, allocations: 80.94 kB / 478.7 MB, free: 4.477 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001807/0.1324, allocations: 0.6729 MB / 479.4 MB, free: 3.777 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.478e-06/0.1325, allocations: 8.125 kB / 479.4 MB, free: 3.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.739e-06/0.1325, allocations: 7.438 kB / 479.4 MB, free: 3.762 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1325, allocations: 0 / 479.4 MB, free: 3.762 MB / 350.1 MB Notification: Performance of Templates: time 0.01261/0.1451, allocations: 7.418 MB / 486.8 MB, free: 12.33 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe 2>&1)