Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3.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.TestMatrices3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001173/0.001173, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001425/0.001425, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2173/0.2173, allocations: 46.11 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001616/0.001616, allocations: 82 kB / 417.7 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1155, allocations: 62.44 MB / 480.1 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices3): time 0.001594/0.1171, allocations: 487.7 kB / 480.6 MB, free: 4.727 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001863/0.119, allocations: 1.567 MB / 482.2 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.607e-05/0.119, allocations: 0 / 482.2 MB, free: 3.145 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.427e-06/0.119, allocations: 4 kB / 482.2 MB, free: 3.141 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.268e-06/0.1191, allocations: 0 / 482.2 MB, free: 3.141 MB / 350.1 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.0007869/0.1198, allocations: 223.4 kB / 482.4 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.794e-05/0.1199, allocations: 7.984 kB / 482.4 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.623e-05/0.1199, allocations: 0 / 482.4 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.463e-05/0.12, allocations: 7.938 kB / 482.4 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.337e-05/0.12, allocations: 0 / 482.4 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.378e-06/0.12, allocations: 0 / 482.4 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008981/0.1209, allocations: 0.7025 MB / 483.1 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.592e-06/0.1209, allocations: 0 / 483.1 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.216e-05/0.1209, allocations: 0 / 483.1 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006821/0.1216, allocations: 0.6474 MB / 483.8 MB, free: 1.555 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.1216, allocations: 0 / 483.8 MB, free: 1.555 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.1216, allocations: 4 kB / 483.8 MB, free: 1.551 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.775e-06/0.1217, allocations: 4 kB / 483.8 MB, free: 1.547 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.0004374/0.1221, allocations: 361.3 kB / 484.1 MB, free: 1.141 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.1221, allocations: 12.03 kB / 484.1 MB, free: 1.129 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.6e-05/0.1222, allocations: 34.69 kB / 484.2 MB, free: 1.086 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.316e-05/0.1222, allocations: 4.938 kB / 484.2 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.813e-05/0.1223, allocations: 160.4 kB / 484.3 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/0.1223, allocations: 384 / 484.3 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.949e-06/0.1223, allocations: 384 / 484.3 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.285e-05/0.1224, allocations: 45.75 kB / 484.4 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.1224, allocations: 0 / 484.4 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.212e-06/0.1224, allocations: 0 / 484.4 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.1224, allocations: 0 / 484.4 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.934e-05/0.1225, allocations: 7.984 kB / 484.4 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001147/0.1226, allocations: 141.7 kB / 484.5 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.822e-05/0.1226, allocations: 18.58 kB / 484.5 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.51e-05/0.1227, allocations: 8.953 kB / 484.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.712e-06/0.1227, allocations: 7.938 kB / 484.5 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.579e-05/0.1227, allocations: 60.2 kB / 484.6 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.1227, allocations: 0 / 484.6 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001462/0.1229, allocations: 63.39 kB / 484.7 MB, free: 456 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.111e-05/0.1229, allocations: 77.11 kB / 484.7 MB, free: 360 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.392e-05/0.123, allocations: 93.86 kB / 484.8 MB, free: 256 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.206e-05/0.123, allocations: 25.7 kB / 484.9 MB, free: 224 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.248e-05/0.123, allocations: 84.27 kB / 484.9 MB, free: 136 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.683e-05/0.123, allocations: 7.938 kB / 485 MB, free: 128 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.501e-05/0.1231, allocations: 9.719 kB / 485 MB, free: 112 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.1232, allocations: 314.8 kB / 485.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.278e-06/0.1232, allocations: 4 kB / 485.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.731e-06/0.1232, allocations: 3.938 kB / 485.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.694e-05/0.1233, allocations: 64.27 kB / 485.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1233, allocations: 0 / 485.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.127e-05/0.1234, allocations: 59.47 kB / 485.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.723e-05/0.1234, allocations: 41.62 kB / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.1234, allocations: 0 / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.046e-05/0.1234, allocations: 0 / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.1234, allocations: 0 / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.867e-06/0.1234, allocations: 0 / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.456e-05/0.1235, allocations: 0 / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.864e-06/0.1235, allocations: 7.984 kB / 485.4 MB, free: 15.58 MB / 366.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.113e-05/0.1235, allocations: 135.5 kB / 485.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.121e-05/0.1236, allocations: 7.969 kB / 485.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.915e-06/0.1236, allocations: 11.06 kB / 485.6 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.1236, allocations: 3.984 kB / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.1236, allocations: 0 / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.693e-06/0.1236, allocations: 0 / 485.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.41e-05/0.1237, allocations: 149.6 kB / 485.7 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.1237, allocations: 4 kB / 485.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.12e-07/0.1237, allocations: 0 / 485.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.1237, allocations: 7.938 kB / 485.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.63e-06/0.1237, allocations: 0 / 485.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1237, allocations: 0 / 485.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.1237, allocations: 4 kB / 485.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.369e-05/0.1238, allocations: 90.83 kB / 485.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.743e-05/0.1239, allocations: 81.05 kB / 485.9 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.229e-05/0.1239, allocations: 3.984 kB / 485.9 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.247e-06/0.1239, allocations: 0 / 485.9 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.052e-05/0.1239, allocations: 0 / 485.9 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-06/0.1239, allocations: 4 kB / 485.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.137e-05/0.1239, allocations: 79.31 kB / 486 MB, free: 14.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.423e-06/0.1239, allocations: 0 / 486 MB, free: 14.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003948/0.1243, allocations: 120.2 kB / 486.1 MB, free: 14.79 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.0008752/0.1252, allocations: 0.7066 MB / 486.8 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 7.733e-05/0.1253, allocations: 59.41 kB / 486.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.532e-06/0.1253, allocations: 0 / 486.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.262e-05/0.1254, allocations: 59.41 kB / 487 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001147/0.1255, allocations: 8.062 kB / 487 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003301/0.1258, allocations: 126.6 kB / 487.1 MB, free: 13.74 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000215/0.1261, allocations: 0.6729 MB / 487.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.662e-06/0.1261, allocations: 0 / 487.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.321e-05/0.1261, allocations: 7.438 kB / 487.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1261, allocations: 0 / 487.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0208/0.1469, allocations: 4.694 MB / 492.5 MB, free: 8.383 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.289/7.436, allocations: 12.77 kB / 492.5 MB, free: 8.371 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestMatrices3_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestMatrices3.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices3.pipe 2>&1)