Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.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.TestMatrices2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001152/0.001152, 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.001323/0.001323, 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.36/1.36, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2139/0.2139, allocations: 46.1 MB / 344.1 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001397/0.001397, allocations: 76.39 kB / 417.7 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1137, allocations: 62.45 MB / 480.1 MB, free: 5.207 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001965/0.1157, allocations: 479.8 kB / 480.6 MB, free: 4.734 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007478/0.1232, allocations: 4.896 MB / 485.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.706e-05/0.1233, allocations: 0 / 485.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.625e-05/0.1233, allocations: 0 / 485.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 4.93e-06/0.1234, allocations: 0 / 485.5 MB, free: 15.82 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.006573/0.1299, allocations: 2.927 MB / 488.4 MB, free: 12.9 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.832e-05/0.13, allocations: 8 kB / 488.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.637e-05/0.13, allocations: 0 / 488.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.321e-05/0.1301, allocations: 4 kB / 488.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.514e-05/0.1301, allocations: 0 / 488.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.57e-06/0.1301, allocations: 0 / 488.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02649/0.1566, allocations: 18.57 MB / 0.4951 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.418e-05/0.1566, allocations: 0 / 0.4951 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.585e-05/0.1567, allocations: 0 / 0.4951 GB, free: 10.3 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2534/0.41, allocations: 27.48 MB / 0.5219 GB, free: 27.22 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.4101, allocations: 0 / 0.5219 GB, free: 27.22 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4101, allocations: 0 / 0.5219 GB, free: 27.22 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.4101, allocations: 0 / 0.5219 GB, free: 27.22 MB / 382.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.01424/0.4244, allocations: 0.6548 MB / 0.5226 GB, free: 26.67 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.022e-05/0.4244, allocations: 7.781 kB / 0.5226 GB, free: 26.67 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.298e-05/0.4244, allocations: 32.78 kB / 0.5226 GB, free: 26.63 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.152e-05/0.4245, allocations: 2.844 kB / 0.5226 GB, free: 26.63 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.473e-05/0.4245, allocations: 164.2 kB / 0.5228 GB, free: 26.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.4246, allocations: 4.219 kB / 0.5228 GB, free: 26.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.514e-06/0.4246, allocations: 0 / 0.5228 GB, free: 26.43 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.199e-05/0.4247, allocations: 31.58 kB / 0.5228 GB, free: 26.4 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.116e-06/0.4247, allocations: 1.078 kB / 0.5228 GB, free: 26.4 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-06/0.4247, allocations: 0 / 0.5228 GB, free: 26.4 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.4247, allocations: 0 / 0.5228 GB, free: 26.4 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.86e-05/0.4247, allocations: 5.328 kB / 0.5228 GB, free: 26.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.582e-05/0.4248, allocations: 153 kB / 0.523 GB, free: 26.2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.811e-05/0.4249, allocations: 21.73 kB / 0.523 GB, free: 26.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.237e-05/0.4249, allocations: 5.625 kB / 0.523 GB, free: 26.17 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.255e-06/0.4249, allocations: 3.625 kB / 0.523 GB, free: 26.17 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.981e-05/0.4249, allocations: 62.11 kB / 0.5231 GB, free: 26.1 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.213e-06/0.4249, allocations: 0 / 0.5231 GB, free: 26.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001532/0.4251, allocations: 65.23 kB / 0.5231 GB, free: 26.04 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.926e-05/0.4251, allocations: 77.11 kB / 0.5232 GB, free: 25.94 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.037e-05/0.4252, allocations: 90.39 kB / 0.5233 GB, free: 25.84 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.382e-06/0.4252, allocations: 33.47 kB / 0.5233 GB, free: 25.81 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.949e-06/0.4252, allocations: 83.52 kB / 0.5234 GB, free: 25.73 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.538e-05/0.4252, allocations: 4.625 kB / 0.5234 GB, free: 25.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.36e-05/0.4252, allocations: 14.59 kB / 0.5234 GB, free: 25.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.75e-05/0.4253, allocations: 319.5 kB / 0.5237 GB, free: 25.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.084e-05/0.4253, allocations: 3.469 kB / 0.5237 GB, free: 25.39 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.15e-06/0.4253, allocations: 0 / 0.5237 GB, free: 25.39 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.214e-05/0.4254, allocations: 64.02 kB / 0.5238 GB, free: 25.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.4254, allocations: 4.844 kB / 0.5238 GB, free: 25.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.826e-05/0.4254, allocations: 63.91 kB / 0.5238 GB, free: 25.26 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.323e-05/0.4255, allocations: 33.44 kB / 0.5239 GB, free: 25.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.4255, allocations: 2.562 kB / 0.5239 GB, free: 25.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.4255, allocations: 0 / 0.5239 GB, free: 25.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.71e-07/0.4255, allocations: 0 / 0.5239 GB, free: 25.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.329e-06/0.4255, allocations: 3.812 kB / 0.5239 GB, free: 25.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.632e-05/0.4255, allocations: 0 / 0.5239 GB, free: 25.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.3e-06/0.4255, allocations: 0 / 0.5239 GB, free: 25.23 MB / 382.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 4.793e-05/0.4256, allocations: 144.3 kB / 0.524 GB, free: 25.08 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.676e-06/0.4256, allocations: 0 / 0.524 GB, free: 25.08 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.608e-06/0.4256, allocations: 3.125 kB / 0.524 GB, free: 25.08 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.4256, allocations: 3.938 kB / 0.524 GB, free: 25.08 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.4256, allocations: 6.016 kB / 0.524 GB, free: 25.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.743e-06/0.4256, allocations: 0 / 0.524 GB, free: 25.07 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.462e-05/0.4257, allocations: 148.2 kB / 0.5242 GB, free: 24.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.4257, allocations: 0 / 0.5242 GB, free: 24.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.4257, allocations: 0 / 0.5242 GB, free: 24.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.002e-06/0.4257, allocations: 0 / 0.5242 GB, free: 24.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.875e-06/0.4257, allocations: 5.312 kB / 0.5242 GB, free: 24.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.4257, allocations: 1.688 kB / 0.5242 GB, free: 24.88 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.4257, allocations: 3.938 kB / 0.5242 GB, free: 24.88 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.609e-05/0.4258, allocations: 100.2 kB / 0.5243 GB, free: 24.78 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.81e-05/0.4258, allocations: 81.02 kB / 0.5244 GB, free: 24.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.255e-05/0.4258, allocations: 7.25 kB / 0.5244 GB, free: 24.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.067e-06/0.4259, allocations: 3.984 kB / 0.5244 GB, free: 24.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.407e-06/0.4259, allocations: 0 / 0.5244 GB, free: 24.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-06/0.4259, allocations: 0 / 0.5244 GB, free: 24.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.072e-05/0.4259, allocations: 79.53 kB / 0.5244 GB, free: 24.6 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4259, allocations: 0 / 0.5244 GB, free: 24.6 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.01764/0.4435, allocations: 3.781 MB / 0.5281 GB, free: 21.33 MB / 382.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.03787/0.4814, allocations: 1.495 MB / 0.5296 GB, free: 19.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001433/0.4816, allocations: 62.78 kB / 0.5297 GB, free: 19.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.4816, allocations: 0 / 0.5297 GB, free: 19.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.231e-05/0.4817, allocations: 58.78 kB / 0.5297 GB, free: 19.79 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001598/0.4818, allocations: 0 / 0.5297 GB, free: 19.79 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01477/0.4966, allocations: 334.6 kB / 0.53 GB, free: 19.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.13e-05/0.4967, allocations: 0.669 MB / 0.5307 GB, free: 18.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.935e-06/0.4967, allocations: 4 kB / 0.5307 GB, free: 18.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.296e-05/0.4968, allocations: 11.56 kB / 0.5307 GB, free: 18.72 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4968, allocations: 0 / 0.5307 GB, free: 18.72 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.173/0.6698, allocations: 113.8 MB / 0.6418 GB, free: 0.8047 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.58/15.25, allocations: 18.22 kB / 0.6418 GB, free: 0.7891 MB / 478.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2.pipe 2>&1)