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.001413/0.001413, allocations: 117.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00162/0.00162, allocations: 208.5 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2288/0.2288, allocations: 46.09 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001519/0.001519, allocations: 75.88 kB / 480.8 MB, free: 4.602 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3439/0.3454, allocations: 62.44 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001617/0.3471, allocations: 490.9 kB / 0.531 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008264/0.3554, allocations: 4.885 MB / 0.5357 GB, free: 9.301 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.38e-05/0.3554, allocations: 1.375 kB / 0.5357 GB, free: 9.301 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.67e-05/0.3555, allocations: 4 kB / 0.5357 GB, free: 9.297 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.282e-06/0.3555, allocations: 0 / 0.5357 GB, free: 9.297 MB / 398.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.008469/0.364, allocations: 2.931 MB / 0.5386 GB, free: 7.652 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.88e-05/0.3641, allocations: 5.562 kB / 0.5386 GB, free: 7.648 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.283e-05/0.3641, allocations: 1.188 kB / 0.5386 GB, free: 7.648 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.527e-05/0.3641, allocations: 0 / 0.5386 GB, free: 7.648 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.103e-05/0.3642, allocations: 1.469 kB / 0.5386 GB, free: 7.648 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.474e-06/0.3642, allocations: 3.938 kB / 0.5386 GB, free: 7.645 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03021/0.3944, allocations: 18.82 MB / 0.557 GB, free: 6.652 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.648e-05/0.3945, allocations: 0 / 0.557 GB, free: 6.652 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.829e-05/0.3945, allocations: 3.984 kB / 0.557 GB, free: 6.648 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03467/0.4292, allocations: 27.48 MB / 0.5838 GB, free: 11.13 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.576e-06/0.4292, allocations: 0 / 0.5838 GB, free: 11.13 MB / 446.1 MB Notification: Performance of FrontEnd: time 3.547e-06/0.4292, allocations: 0 / 0.5838 GB, free: 11.13 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.441e-05/0.4293, allocations: 0 / 0.5838 GB, free: 11.13 MB / 446.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.01014/0.4394, allocations: 0.6495 MB / 0.5845 GB, free: 10.43 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/0.4395, allocations: 8.031 kB / 0.5845 GB, free: 10.42 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.188e-05/0.4395, allocations: 34.75 kB / 0.5845 GB, free: 10.38 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.351e-05/0.4396, allocations: 0.9375 kB / 0.5845 GB, free: 10.38 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.687e-05/0.4397, allocations: 171 kB / 0.5847 GB, free: 10.17 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.554e-05/0.4397, allocations: 4 kB / 0.5847 GB, free: 10.17 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.549e-05/0.4397, allocations: 0 / 0.5847 GB, free: 10.17 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.788e-05/0.4398, allocations: 33.64 kB / 0.5847 GB, free: 10.13 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.4398, allocations: 0 / 0.5847 GB, free: 10.13 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.186e-06/0.4399, allocations: 0 / 0.5847 GB, free: 10.13 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.4399, allocations: 0 / 0.5847 GB, free: 10.13 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.34e-05/0.4399, allocations: 3.984 kB / 0.5847 GB, free: 10.12 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001378/0.44, allocations: 153.6 kB / 0.5849 GB, free: 9.926 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.945e-05/0.4401, allocations: 22.52 kB / 0.5849 GB, free: 9.895 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.684e-05/0.4401, allocations: 12.95 kB / 0.5849 GB, free: 9.879 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.286e-06/0.4401, allocations: 0 / 0.5849 GB, free: 9.879 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.454e-05/0.4402, allocations: 56.27 kB / 0.5849 GB, free: 9.809 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 9.12e-07/0.4402, allocations: 0 / 0.5849 GB, free: 9.809 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001963/0.4404, allocations: 67.3 kB / 0.585 GB, free: 9.73 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.113e-05/0.4405, allocations: 77.11 kB / 0.5851 GB, free: 9.637 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.018e-05/0.4405, allocations: 93.92 kB / 0.5852 GB, free: 9.535 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.252e-05/0.4405, allocations: 29.7 kB / 0.5852 GB, free: 9.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.65e-05/0.4406, allocations: 84.14 kB / 0.5853 GB, free: 9.414 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.692e-05/0.4406, allocations: 4 kB / 0.5853 GB, free: 9.41 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.137e-05/0.4406, allocations: 9.719 kB / 0.5853 GB, free: 9.395 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.4407, allocations: 318.8 kB / 0.5856 GB, free: 9.074 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.183e-05/0.4408, allocations: 4 kB / 0.5856 GB, free: 9.07 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.263e-06/0.4408, allocations: 0 / 0.5856 GB, free: 9.07 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.848e-05/0.4408, allocations: 64.33 kB / 0.5857 GB, free: 8.992 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.4408, allocations: 0 / 0.5857 GB, free: 8.992 MB / 446.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.394e-05/0.4409, allocations: 59.41 kB / 0.5857 GB, free: 8.922 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.849e-05/0.441, allocations: 37.69 kB / 0.5858 GB, free: 8.879 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.441, allocations: 0 / 0.5858 GB, free: 8.879 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.441, allocations: 0 / 0.5858 GB, free: 8.879 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.002e-06/0.441, allocations: 3.938 kB / 0.5858 GB, free: 8.875 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.441, allocations: 3.984 kB / 0.5858 GB, free: 8.871 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.138e-05/0.441, allocations: 7.938 kB / 0.5858 GB, free: 8.863 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.324e-06/0.4411, allocations: 0 / 0.5858 GB, free: 8.863 MB / 446.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 9.46e-05/0.4412, allocations: 135.6 kB / 0.5859 GB, free: 8.715 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.07e-05/0.4412, allocations: 4 kB / 0.5859 GB, free: 8.711 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.126e-05/0.4412, allocations: 3.125 kB / 0.5859 GB, free: 8.711 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.4412, allocations: 0 / 0.5859 GB, free: 8.711 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.4412, allocations: 3.984 kB / 0.5859 GB, free: 8.707 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.4412, allocations: 11.86 kB / 0.5859 GB, free: 8.695 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001017/0.4413, allocations: 149.7 kB / 0.5861 GB, free: 8.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.4413, allocations: 4 kB / 0.5861 GB, free: 8.496 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.036e-06/0.4413, allocations: 4 kB / 0.5861 GB, free: 8.492 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.4414, allocations: 4 kB / 0.5861 GB, free: 8.488 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.773e-06/0.4414, allocations: 0 / 0.5861 GB, free: 8.488 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.4414, allocations: 0 / 0.5861 GB, free: 8.488 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.4414, allocations: 0 / 0.5861 GB, free: 8.488 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001025/0.4415, allocations: 94.77 kB / 0.5862 GB, free: 8.371 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.79e-05/0.4415, allocations: 81.05 kB / 0.5862 GB, free: 8.273 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.145e-05/0.4415, allocations: 0 / 0.5862 GB, free: 8.273 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.296e-05/0.4416, allocations: 7.922 kB / 0.5862 GB, free: 8.266 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.442e-05/0.4416, allocations: 8.031 kB / 0.5863 GB, free: 8.258 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.039e-06/0.4416, allocations: 3.938 kB / 0.5863 GB, free: 8.254 MB / 446.1 MB Notification: Performance of sorting global known variables: time 2.847e-05/0.4416, allocations: 75.28 kB / 0.5863 GB, free: 8.18 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4416, allocations: 0 / 0.5863 GB, free: 8.18 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01304/0.4547, allocations: 3.781 MB / 0.59 GB, free: 4.398 MB / 446.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.02573/0.4804, allocations: 1.485 MB / 0.5915 GB, free: 2.891 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001494/0.4806, allocations: 59.41 kB / 0.5915 GB, free: 2.82 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4806, allocations: 0 / 0.5915 GB, free: 2.82 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 4.054e-05/0.4807, allocations: 51.41 kB / 0.5916 GB, free: 2.758 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001468/0.4808, allocations: 7.938 kB / 0.5916 GB, free: 2.75 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007411/0.4883, allocations: 346.6 kB / 0.5919 GB, free: 2.371 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002592/0.4886, allocations: 0.669 MB / 0.5926 GB, free: 1.676 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.059e-05/0.4886, allocations: 0 / 0.5926 GB, free: 1.676 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.938e-05/0.4886, allocations: 15.38 kB / 0.5926 GB, free: 1.66 MB / 446.1 MB Notification: Performance of SimCode: time 1.113e-06/0.4886, allocations: 0 / 0.5926 GB, free: 1.66 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1809/0.6696, allocations: 113.8 MB / 0.7037 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.54/16.21, allocations: 11.86 kB / 0.7037 GB, free: 15.69 MB / 0.5606 GB (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)