Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices3.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Math.TestMatrices3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices3") translateModel(ModelicaTest.Math.TestMatrices3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001063/0.001063, allocations: 203 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.269/1.269, allocations: 226.6 MB / 243.1 MB, free: 14.3 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007389/0.0007389, allocations: 103.9 kB / 295.1 MB, free: 10.06 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1767/0.1767, allocations: 44.84 MB / 392 MB, free: 9.344 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002251/0.0002251, allocations: 8 kB / 464.7 MB, free: 49.79 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09772/0.09796, allocations: 62.96 MB / 0.5153 GB, free: 2.797 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices3): time 0.0005344/0.09854, allocations: 216.6 kB / 0.5155 GB, free: 2.582 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001646/0.1002, allocations: 1.497 MB / 0.517 GB, free: 1.066 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.365e-05/0.1002, allocations: 0 / 0.517 GB, free: 1.066 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 8.867e-06/0.1002, allocations: 0 / 0.517 GB, free: 1.066 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.18e-06/0.1002, allocations: 0 / 0.517 GB, free: 1.066 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:576:3-610:16:writable] Warning: Pure function ‘ModelicaTest.Math.Matrices3‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.0006696/0.1009, allocations: 203.6 kB / 0.5172 GB, free: 0.8672 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 2.933e-05/0.101, allocations: 7.922 kB / 0.5172 GB, free: 0.8594 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.665e-05/0.101, allocations: 0 / 0.5172 GB, free: 0.8594 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.427e-05/0.101, allocations: 0 / 0.5172 GB, free: 0.8594 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.914e-05/0.101, allocations: 7.984 kB / 0.5172 GB, free: 0.8516 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.34e-06/0.1011, allocations: 0 / 0.5172 GB, free: 0.8516 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007994/0.1019, allocations: 0.6636 MB / 0.5178 GB, free: 192 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.983e-06/0.1019, allocations: 0 / 0.5178 GB, free: 192 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.349e-05/0.1019, allocations: 33.64 kB / 0.5179 GB, free: 152 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.185/0.2869, allocations: 446.1 kB / 0.5183 GB, free: 10.01 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.391e-06/0.2869, allocations: 0 / 0.5183 GB, free: 10.01 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.287, allocations: 0 / 0.5183 GB, free: 10.01 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.287, allocations: 1.062 kB / 0.5183 GB, free: 10.01 MB / 346.7 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.0003847/0.2874, allocations: 360.2 kB / 0.5186 GB, free: 9.637 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.2874, allocations: 10 kB / 0.5187 GB, free: 9.637 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.962e-05/0.2874, allocations: 1.688 kB / 0.5187 GB, free: 9.637 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.267e-05/0.2875, allocations: 167.3 kB / 0.5188 GB, free: 9.438 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.366e-05/0.2875, allocations: 0.5156 kB / 0.5188 GB, free: 9.438 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.065e-05/0.2875, allocations: 4.875 kB / 0.5188 GB, free: 9.438 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.245e-05/0.2876, allocations: 29.47 kB / 0.5189 GB, free: 9.406 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.851e-06/0.2876, allocations: 0.8438 kB / 0.5189 GB, free: 9.406 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.456e-06/0.2876, allocations: 0 / 0.5189 GB, free: 9.406 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.2876, allocations: 1.422 kB / 0.5189 GB, free: 9.406 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.875e-05/0.2877, allocations: 1.75 kB / 0.5189 GB, free: 9.406 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.214e-05/0.2878, allocations: 153.5 kB / 0.519 GB, free: 9.215 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.046e-05/0.2878, allocations: 21.56 kB / 0.519 GB, free: 9.191 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.243e-05/0.2878, allocations: 7.344 kB / 0.519 GB, free: 9.184 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.715e-06/0.2878, allocations: 1 kB / 0.519 GB, free: 9.184 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.2879, allocations: 64.03 kB / 0.5191 GB, free: 9.113 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.011e-06/0.2879, allocations: 0 / 0.5191 GB, free: 9.113 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001428/0.288, allocations: 62.78 kB / 0.5192 GB, free: 9.051 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.666e-05/0.2881, allocations: 79.7 kB / 0.5192 GB, free: 8.957 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.852e-05/0.2881, allocations: 93.28 kB / 0.5193 GB, free: 8.859 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.891e-06/0.2881, allocations: 26.73 kB / 0.5193 GB, free: 8.828 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.568e-06/0.2881, allocations: 85.95 kB / 0.5194 GB, free: 8.746 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.954e-05/0.2881, allocations: 2.844 kB / 0.5194 GB, free: 8.746 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.175e-06/0.2881, allocations: 0 / 0.5194 GB, free: 8.746 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.071e-05/0.2882, allocations: 312.2 kB / 0.5197 GB, free: 8.434 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.584e-06/0.2882, allocations: 1.547 kB / 0.5197 GB, free: 8.434 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.861e-06/0.2882, allocations: 5.938 kB / 0.5197 GB, free: 8.43 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.993e-05/0.2882, allocations: 28.7 kB / 0.5198 GB, free: 8.398 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2882, allocations: 0 / 0.5198 GB, free: 8.398 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.015e-05/0.2883, allocations: 67.88 kB / 0.5198 GB, free: 8.332 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.489e-05/0.2883, allocations: 35.38 kB / 0.5199 GB, free: 8.301 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.2883, allocations: 0 / 0.5199 GB, free: 8.301 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.2884, allocations: 0.75 kB / 0.5199 GB, free: 8.301 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.92e-07/0.2884, allocations: 1.5 kB / 0.5199 GB, free: 8.301 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.2884, allocations: 0 / 0.5199 GB, free: 8.301 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.49e-05/0.2884, allocations: 0.6094 kB / 0.5199 GB, free: 8.301 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.582e-06/0.2884, allocations: 5.906 kB / 0.5199 GB, free: 8.297 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.166e-05/0.2885, allocations: 135.9 kB / 0.52 GB, free: 8.152 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.045e-06/0.2885, allocations: 5.078 kB / 0.52 GB, free: 8.148 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.598e-06/0.2885, allocations: 6.906 kB / 0.52 GB, free: 8.148 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.572e-06/0.2885, allocations: 1.156 kB / 0.52 GB, free: 8.148 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2885, allocations: 0 / 0.52 GB, free: 8.148 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.2885, allocations: 0.7969 kB / 0.52 GB, free: 8.148 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.678e-05/0.2886, allocations: 146.5 kB / 0.5201 GB, free: 7.961 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.2886, allocations: 2.812 kB / 0.5202 GB, free: 7.961 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.02e-07/0.2886, allocations: 4.562 kB / 0.5202 GB, free: 7.957 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.2886, allocations: 3.953 kB / 0.5202 GB, free: 7.953 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.302e-06/0.2886, allocations: 1.609 kB / 0.5202 GB, free: 7.953 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.31e-07/0.2886, allocations: 1.188 kB / 0.5202 GB, free: 7.953 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2886, allocations: 0 / 0.5202 GB, free: 7.953 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.933e-05/0.2887, allocations: 92.47 kB / 0.5203 GB, free: 7.859 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.311e-05/0.2887, allocations: 77.91 kB / 0.5203 GB, free: 7.766 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.218e-05/0.2887, allocations: 10 kB / 0.5203 GB, free: 7.758 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.438e-06/0.2887, allocations: 1.188 kB / 0.5203 GB, free: 7.758 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.721e-05/0.2887, allocations: 5.078 kB / 0.5203 GB, free: 7.758 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-06/0.2888, allocations: 0.9375 kB / 0.5203 GB, free: 7.758 MB / 346.7 MB Notification: Performance of sorting global known variables: time 1.084e-05/0.2888, allocations: 75.28 kB / 0.5204 GB, free: 7.684 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.01e-07/0.2888, allocations: 0.75 kB / 0.5204 GB, free: 7.684 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004735/0.2893, allocations: 121.3 kB / 0.5205 GB, free: 7.68 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006571/0.2899, allocations: 180 kB / 0.5207 GB, free: 7.578 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.165e-05/0.29, allocations: 57.8 kB / 0.5208 GB, free: 7.516 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.29, allocations: 1.125 kB / 0.5208 GB, free: 7.516 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.852e-05/0.29, allocations: 59.86 kB / 0.5208 GB, free: 7.449 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001113/0.2901, allocations: 2.266 kB / 0.5208 GB, free: 7.449 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000142/0.2903, allocations: 108.1 kB / 0.5209 GB, free: 7.32 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.443e-05/0.2904, allocations: 0.6744 MB / 0.5216 GB, free: 6.625 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.843e-06/0.2904, allocations: 8.5 kB / 0.5216 GB, free: 6.617 MB / 346.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2904, allocations: 0 / 0.5216 GB, free: 6.617 MB / 346.7 MB Notification: Performance of Templates: time 0.005778/0.2962, allocations: 2.691 MB / 0.5242 GB, free: 6.477 MB / 346.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices3.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices3.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices3.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices3.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices3.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices3 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.TestMatrices3.pipe 2>&1)