Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001375/0.001375, allocations: 110.4 kB / 19.74 MB, free: 2.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001448/0.001448, allocations: 218.7 kB / 22.92 MB, free: 5.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.283/1.283, allocations: 230.2 MB / 256.2 MB, free: 8.59 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.1967/0.1967, allocations: 46.89 MB / 359.3 MB, free: 4.953 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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: "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002159/0.002159, allocations: 91.84 kB / 0.494 GB, free: 9.105 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.2652, allocations: 65.98 MB / 0.5584 GB, free: 5.215 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001548/0.2667, allocations: 493 kB / 0.5589 GB, free: 4.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007689/0.2744, allocations: 4.948 MB / 0.5637 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.814e-05/0.2744, allocations: 0 / 0.5637 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.608e-05/0.2745, allocations: 0 / 0.5637 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.131e-06/0.2745, allocations: 0 / 0.5637 GB, free: 15.75 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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.006595/0.2811, allocations: 2.938 MB / 0.5666 GB, free: 12.83 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.294e-05/0.2811, allocations: 4 kB / 0.5666 GB, free: 12.82 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.441e-05/0.2811, allocations: 0 / 0.5666 GB, free: 12.82 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.269e-05/0.2811, allocations: 0 / 0.5666 GB, free: 12.82 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.33e-05/0.2812, allocations: 0 / 0.5666 GB, free: 12.82 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 4.709e-06/0.2812, allocations: 0 / 0.5666 GB, free: 12.82 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02786/0.309, allocations: 19.57 MB / 0.5857 GB, free: 9.23 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 9.889e-06/0.309, allocations: 4 kB / 0.5857 GB, free: 9.227 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.399e-05/0.3091, allocations: 7.938 kB / 0.5857 GB, free: 9.219 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03419/0.3432, allocations: 27.48 MB / 0.6125 GB, free: 13.69 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.3433, allocations: 0 / 0.6125 GB, free: 13.69 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3433, allocations: 0 / 0.6125 GB, free: 13.69 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.353e-05/0.3433, allocations: 0 / 0.6125 GB, free: 13.69 MB / 462.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.007384/0.3507, allocations: 0.6696 MB / 0.6132 GB, free: 12.97 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.3507, allocations: 8.031 kB / 0.6132 GB, free: 12.96 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.596e-05/0.3507, allocations: 38.67 kB / 0.6132 GB, free: 12.91 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.934e-05/0.3508, allocations: 4.938 kB / 0.6132 GB, free: 12.91 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000111/0.3509, allocations: 167 kB / 0.6134 GB, free: 12.71 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.076e-05/0.3509, allocations: 4 kB / 0.6134 GB, free: 12.7 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.163e-05/0.3509, allocations: 3.984 kB / 0.6134 GB, free: 12.7 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.568e-05/0.351, allocations: 33.64 kB / 0.6134 GB, free: 12.66 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.432e-06/0.351, allocations: 0 / 0.6134 GB, free: 12.66 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.722e-06/0.351, allocations: 4 kB / 0.6134 GB, free: 12.66 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.351, allocations: 0 / 0.6134 GB, free: 12.66 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.695e-05/0.351, allocations: 3.938 kB / 0.6134 GB, free: 12.65 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001506/0.3512, allocations: 157.5 kB / 0.6136 GB, free: 12.45 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.237e-05/0.3512, allocations: 18.61 kB / 0.6136 GB, free: 12.42 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.395e-05/0.3512, allocations: 4.859 kB / 0.6136 GB, free: 12.41 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.468e-06/0.3512, allocations: 0 / 0.6136 GB, free: 12.41 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.57e-05/0.3513, allocations: 64.33 kB / 0.6137 GB, free: 12.34 MB / 462.1 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.3513, allocations: 3.938 kB / 0.6137 GB, free: 12.33 MB / 462.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001664/0.3515, allocations: 59.39 kB / 0.6137 GB, free: 12.26 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.009e-05/0.3515, allocations: 85.23 kB / 0.6138 GB, free: 12.16 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.667e-05/0.3515, allocations: 89.86 kB / 0.6139 GB, free: 12.06 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.258e-05/0.3516, allocations: 25.7 kB / 0.6139 GB, free: 12.03 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.101e-05/0.3516, allocations: 80.14 kB / 0.614 GB, free: 11.95 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.768e-05/0.3516, allocations: 0 / 0.614 GB, free: 11.95 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.041e-05/0.3516, allocations: 17.72 kB / 0.614 GB, free: 11.93 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.3518, allocations: 314.8 kB / 0.6143 GB, free: 11.61 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.149e-05/0.3518, allocations: 3.984 kB / 0.6143 GB, free: 11.61 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.202e-06/0.3518, allocations: 4 kB / 0.6143 GB, free: 11.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.11e-05/0.3518, allocations: 64.2 kB / 0.6144 GB, free: 11.52 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3518, allocations: 0 / 0.6144 GB, free: 11.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.338e-05/0.3519, allocations: 63.41 kB / 0.6144 GB, free: 11.45 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.36e-05/0.3519, allocations: 33.69 kB / 0.6145 GB, free: 11.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.3519, allocations: 4 kB / 0.6145 GB, free: 11.41 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.352, allocations: 4 kB / 0.6145 GB, free: 11.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.61e-07/0.352, allocations: 0 / 0.6145 GB, free: 11.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.068e-06/0.352, allocations: 96 / 0.6145 GB, free: 11.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.944e-05/0.352, allocations: 7.938 kB / 0.6145 GB, free: 11.39 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.731e-06/0.352, allocations: 0 / 0.6145 GB, free: 11.39 MB / 462.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.531e-05/0.3521, allocations: 139.5 kB / 0.6146 GB, free: 11.24 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.206e-06/0.3521, allocations: 0 / 0.6146 GB, free: 11.24 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.033e-06/0.3521, allocations: 3.125 kB / 0.6146 GB, free: 11.24 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/0.3521, allocations: 0 / 0.6146 GB, free: 11.24 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.3521, allocations: 0 / 0.6146 GB, free: 11.24 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.3521, allocations: 3.938 kB / 0.6146 GB, free: 11.24 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.921e-05/0.3522, allocations: 149.7 kB / 0.6148 GB, free: 11.04 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.3522, allocations: 4 kB / 0.6148 GB, free: 11.04 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.71e-07/0.3522, allocations: 0 / 0.6148 GB, free: 11.04 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.3522, allocations: 3.938 kB / 0.6148 GB, free: 11.04 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.286e-06/0.3522, allocations: 4 kB / 0.6148 GB, free: 11.03 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.3522, allocations: 0 / 0.6148 GB, free: 11.03 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.3522, allocations: 4 kB / 0.6148 GB, free: 11.03 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.8e-05/0.3523, allocations: 90.77 kB / 0.6149 GB, free: 10.91 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.559e-05/0.3523, allocations: 81.14 kB / 0.615 GB, free: 10.82 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.218e-05/0.3524, allocations: 7.938 kB / 0.615 GB, free: 10.81 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.886e-06/0.3524, allocations: 0 / 0.615 GB, free: 10.81 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.084e-05/0.3524, allocations: 3.984 kB / 0.615 GB, free: 10.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.3524, allocations: 3.938 kB / 0.615 GB, free: 10.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 2.958e-05/0.3524, allocations: 75.28 kB / 0.615 GB, free: 10.73 MB / 462.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3524, allocations: 0 / 0.615 GB, free: 10.73 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01026/0.3627, allocations: 3.784 MB / 0.6187 GB, free: 6.941 MB / 462.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.01899/0.3817, allocations: 1.516 MB / 0.6202 GB, free: 5.402 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0001416/0.3818, allocations: 63.39 kB / 0.6203 GB, free: 5.328 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3818, allocations: 0 / 0.6203 GB, free: 5.328 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 4.129e-05/0.3818, allocations: 59.34 kB / 0.6203 GB, free: 5.258 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001405/0.382, allocations: 8.062 kB / 0.6203 GB, free: 5.25 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005546/0.3875, allocations: 344.9 kB / 0.6207 GB, free: 4.871 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002839/0.3878, allocations: 0.6767 MB / 0.6213 GB, free: 4.168 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 6.321e-06/0.3878, allocations: 0 / 0.6213 GB, free: 4.168 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.563e-05/0.3879, allocations: 11.44 kB / 0.6213 GB, free: 4.156 MB / 462.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3879, allocations: 3.938 kB / 0.6214 GB, free: 4.152 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1668/0.5547, allocations: 113.8 MB / 0.7325 GB, free: 2.184 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.75/13.31, allocations: 2.812 kB / 0.7325 GB, free: 2.184 MB / 0.5606 GB " [Timeout remaining time 647] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices2_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.00638451600389]