Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.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: "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001159/0.001159, allocations: 102.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001216/0.001216, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2117/0.2117, allocations: 46.1 MB / 344.1 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 80.7 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1136, allocations: 62.44 MB / 480.1 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001895/0.1156, allocations: 495.7 kB / 480.6 MB, free: 4.688 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002071/0.1177, allocations: 1.599 MB / 482.2 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.387e-05/0.1177, allocations: 3.938 kB / 482.2 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.106e-05/0.1177, allocations: 0 / 482.2 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.89e-06/0.1178, allocations: 0 / 482.2 MB, free: 3.07 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.0008539/0.1186, allocations: 286.9 kB / 482.5 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.203e-05/0.1187, allocations: 0 / 482.5 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.011e-05/0.1187, allocations: 7.984 kB / 482.5 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.314e-05/0.1187, allocations: 0 / 482.5 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.683e-05/0.1188, allocations: 0 / 482.5 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.5e-06/0.1188, allocations: 0 / 482.5 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006517/0.1194, allocations: 0.4912 MB / 483 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.251e-06/0.1194, allocations: 0 / 483 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.779e-05/0.1195, allocations: 0 / 483 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004224/0.1199, allocations: 303.4 kB / 483.3 MB, free: 1.996 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1199, allocations: 0 / 483.3 MB, free: 1.996 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1199, allocations: 7.938 kB / 483.3 MB, free: 1.988 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.1199, allocations: 3.984 kB / 483.3 MB, free: 1.984 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.0003775/0.1203, allocations: 369.3 kB / 483.7 MB, free: 1.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.1204, allocations: 16.03 kB / 483.7 MB, free: 1.555 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.882e-05/0.1204, allocations: 30.75 kB / 483.7 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.307e-05/0.1204, allocations: 0.9375 kB / 483.7 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.94e-05/0.1205, allocations: 164.3 kB / 483.9 MB, free: 1.316 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.464e-06/0.1205, allocations: 4.312 kB / 483.9 MB, free: 1.312 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.706e-06/0.1205, allocations: 384 / 483.9 MB, free: 1.312 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.033e-05/0.1206, allocations: 37.81 kB / 483.9 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.1206, allocations: 0 / 483.9 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.202e-06/0.1207, allocations: 0 / 483.9 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-06/0.1207, allocations: 3.984 kB / 483.9 MB, free: 1.266 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.777e-05/0.1207, allocations: 8 kB / 483.9 MB, free: 1.258 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000126/0.1208, allocations: 145.7 kB / 484.1 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.344e-05/0.1209, allocations: 22.61 kB / 484.1 MB, free: 1.035 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.499e-05/0.1209, allocations: 8.844 kB / 484.1 MB, free: 1.023 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.601e-06/0.1209, allocations: 0 / 484.1 MB, free: 1.023 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.797e-05/0.121, allocations: 60.2 kB / 484.1 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.121, allocations: 0 / 484.1 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001487/0.1211, allocations: 67.41 kB / 484.2 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.891e-05/0.1212, allocations: 77.11 kB / 484.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.286e-05/0.1212, allocations: 93.84 kB / 484.4 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.16e-05/0.1212, allocations: 33.64 kB / 484.4 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.517e-05/0.1213, allocations: 80.14 kB / 484.5 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.743e-05/0.1213, allocations: 3.906 kB / 484.5 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.699e-05/0.1213, allocations: 13.72 kB / 484.5 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.1214, allocations: 319 kB / 484.8 MB, free: 216 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.588e-06/0.1215, allocations: 0 / 484.8 MB, free: 216 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.174e-06/0.1215, allocations: 0 / 484.8 MB, free: 216 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.729e-05/0.1215, allocations: 64.2 kB / 484.9 MB, free: 136 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1215, allocations: 0 / 484.9 MB, free: 136 kB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.912e-05/0.1216, allocations: 67.39 kB / 484.9 MB, free: 56 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.306e-05/0.1216, allocations: 35.98 kB / 485 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.1217, allocations: 0 / 485 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.1217, allocations: 0 / 485 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.014e-06/0.1217, allocations: 8.031 kB / 485 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.062e-06/0.1217, allocations: 4 kB / 485 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.508e-05/0.1217, allocations: 0 / 485 MB, free: 4 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-06/0.1217, allocations: 0 / 485 MB, free: 4 kB / 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 0.0001169/0.1218, allocations: 135.5 kB / 485.1 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.059e-05/0.1219, allocations: 7.938 kB / 485.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.006e-05/0.1219, allocations: 3.125 kB / 485.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.1219, allocations: 0 / 485.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.1219, allocations: 0 / 485.1 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.1219, allocations: 4 kB / 485.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00012/0.122, allocations: 146 kB / 485.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.122, allocations: 3.984 kB / 485.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.865e-06/0.1221, allocations: 4 kB / 485.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.1221, allocations: 7.875 kB / 485.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.746e-06/0.1221, allocations: 0 / 485.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.1221, allocations: 0 / 485.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1221, allocations: 0 / 485.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001258/0.1222, allocations: 94.83 kB / 485.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.301e-05/0.1223, allocations: 81.05 kB / 485.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.486e-05/0.1223, allocations: 3.938 kB / 485.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.726e-05/0.1223, allocations: 8 kB / 485.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.748e-05/0.1223, allocations: 0 / 485.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.1223, allocations: 0 / 485.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.282e-05/0.1224, allocations: 75.28 kB / 485.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1224, allocations: 0 / 485.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003495/0.1227, allocations: 63.98 kB / 485.6 MB, free: 15.27 MB / 366.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.0009319/0.1237, allocations: 0.7165 MB / 486.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001197/0.1238, allocations: 63.34 kB / 486.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1238, allocations: 0 / 486.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.366e-05/0.1239, allocations: 59.39 kB / 486.5 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001375/0.124, allocations: 2.531 kB / 486.5 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003883/0.1244, allocations: 142.6 kB / 486.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002623/0.1247, allocations: 0.6729 MB / 487.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.502e-06/0.1247, allocations: 0 / 487.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.375e-05/0.1247, allocations: 7.438 kB / 487.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1247, allocations: 0 / 487.3 MB, free: 13.5 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01843/0.1432, allocations: 2.084 MB / 489.4 MB, free: 11.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.163/7.307, allocations: 8.078 kB / 489.4 MB, free: 11.45 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestMatrices_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestMatrices_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestMatrices.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices.pipe 2>&1)