Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.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.TestMatrices2b,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2b,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001188/0.001188, allocations: 117.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001229/0.001229, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2024/0.2024, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 75.88 kB / 480.8 MB, free: 4.574 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3087/0.3101, allocations: 62.43 MB / 0.5305 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.001518/0.3117, allocations: 494.3 kB / 0.531 GB, free: 13.04 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002638/0.3143, allocations: 2.149 MB / 0.5331 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.898e-05/0.3144, allocations: 0 / 0.5331 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.363e-05/0.3144, allocations: 0 / 0.5331 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.45e-06/0.3144, allocations: 0 / 0.5331 GB, free: 11.36 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Math.mo:485:3-574:17:writable] Warning: Pure function 'ModelicaTest.Math.Matrices2b' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.00174/0.3161, allocations: 0.7227 MB / 0.5338 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.715e-05/0.3162, allocations: 6.188 kB / 0.5338 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.634e-05/0.3162, allocations: 1.094 kB / 0.5338 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.4e-05/0.3163, allocations: 0 / 0.5338 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.531e-05/0.3163, allocations: 1.188 kB / 0.5338 GB, free: 10.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.229e-06/0.3163, allocations: 4 kB / 0.5338 GB, free: 10.92 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001979/0.3183, allocations: 1.508 MB / 0.5353 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.024e-05/0.3183, allocations: 4 kB / 0.5353 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.001e-05/0.3183, allocations: 1.125 kB / 0.5353 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001477/0.3198, allocations: 1.547 MB / 0.5368 GB, free: 9.418 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3198, allocations: 0.9688 kB / 0.5368 GB, free: 9.418 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.3198, allocations: 4 kB / 0.5368 GB, free: 9.414 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.3199, allocations: 0 / 0.5368 GB, free: 9.414 MB / 398.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.0005661/0.3204, allocations: 413.1 kB / 0.5372 GB, free: 8.984 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.3205, allocations: 9.656 kB / 0.5372 GB, free: 8.984 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.456e-05/0.3205, allocations: 31.66 kB / 0.5372 GB, free: 8.945 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.202e-05/0.3205, allocations: 2.094 kB / 0.5372 GB, free: 8.945 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.514e-05/0.3206, allocations: 160.4 kB / 0.5374 GB, free: 8.75 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.965e-06/0.3206, allocations: 384 / 0.5374 GB, free: 8.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.058e-05/0.3206, allocations: 5.844 kB / 0.5374 GB, free: 8.746 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.145e-05/0.3207, allocations: 47.45 kB / 0.5374 GB, free: 8.695 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.3207, allocations: 0 / 0.5374 GB, free: 8.695 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.482e-06/0.3208, allocations: 1.094 kB / 0.5374 GB, free: 8.695 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.3208, allocations: 0 / 0.5374 GB, free: 8.695 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.577e-05/0.3208, allocations: 0.9688 kB / 0.5374 GB, free: 8.695 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000112/0.3209, allocations: 143.5 kB / 0.5376 GB, free: 8.508 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.395e-05/0.3209, allocations: 20.61 kB / 0.5376 GB, free: 8.48 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.265e-05/0.321, allocations: 10.02 kB / 0.5376 GB, free: 8.469 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.687e-06/0.321, allocations: 7.984 kB / 0.5376 GB, free: 8.461 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.051e-05/0.321, allocations: 65.67 kB / 0.5377 GB, free: 8.383 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.321, allocations: 3.938 kB / 0.5377 GB, free: 8.379 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001456/0.3212, allocations: 59.5 kB / 0.5377 GB, free: 8.316 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.815e-05/0.3212, allocations: 77.11 kB / 0.5378 GB, free: 8.223 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.038e-05/0.3213, allocations: 91.3 kB / 0.5379 GB, free: 8.125 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.599e-05/0.3213, allocations: 29.69 kB / 0.5379 GB, free: 8.09 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.208e-05/0.3213, allocations: 84.27 kB / 0.538 GB, free: 8.004 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.826e-05/0.3213, allocations: 7.719 kB / 0.538 GB, free: 8 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.567e-05/0.3214, allocations: 14.97 kB / 0.538 GB, free: 7.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.994e-05/0.3215, allocations: 316.2 kB / 0.5383 GB, free: 7.664 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.155e-06/0.3215, allocations: 0 / 0.5383 GB, free: 7.664 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.099e-06/0.3215, allocations: 1.594 kB / 0.5383 GB, free: 7.664 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.449e-05/0.3215, allocations: 62.86 kB / 0.5384 GB, free: 7.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3215, allocations: 1.719 kB / 0.5384 GB, free: 7.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.242e-05/0.3216, allocations: 73.02 kB / 0.5384 GB, free: 7.512 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.763e-05/0.3216, allocations: 31.2 kB / 0.5385 GB, free: 7.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.3217, allocations: 3.984 kB / 0.5385 GB, free: 7.477 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.888e-06/0.3217, allocations: 1.469 kB / 0.5385 GB, free: 7.477 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.62e-07/0.3217, allocations: 0 / 0.5385 GB, free: 7.477 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.3217, allocations: 0 / 0.5385 GB, free: 7.477 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.41e-05/0.3217, allocations: 1.75 kB / 0.5385 GB, free: 7.477 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-06/0.3217, allocations: 0 / 0.5385 GB, free: 7.477 MB / 398.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.489e-05/0.3218, allocations: 142.2 kB / 0.5386 GB, free: 7.324 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.016e-05/0.3218, allocations: 5.531 kB / 0.5386 GB, free: 7.32 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.143e-06/0.3218, allocations: 3.125 kB / 0.5386 GB, free: 7.32 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-06/0.3218, allocations: 4 kB / 0.5386 GB, free: 7.316 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.207e-06/0.3218, allocations: 0 / 0.5386 GB, free: 7.316 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.993e-06/0.3218, allocations: 1.375 kB / 0.5386 GB, free: 7.316 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.101e-05/0.3219, allocations: 146.7 kB / 0.5388 GB, free: 7.125 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.3219, allocations: 3.938 kB / 0.5388 GB, free: 7.121 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.753e-06/0.3219, allocations: 5.609 kB / 0.5388 GB, free: 7.117 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.153e-06/0.3219, allocations: 0 / 0.5388 GB, free: 7.117 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.214e-06/0.322, allocations: 4 kB / 0.5388 GB, free: 7.113 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.322, allocations: 5.594 kB / 0.5388 GB, free: 7.109 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.322, allocations: 3.938 kB / 0.5388 GB, free: 7.105 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.167e-05/0.3221, allocations: 92.64 kB / 0.5389 GB, free: 7 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.768e-05/0.3221, allocations: 78.45 kB / 0.539 GB, free: 6.906 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.215e-05/0.3221, allocations: 1.531 kB / 0.539 GB, free: 6.906 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.696e-06/0.3221, allocations: 0 / 0.539 GB, free: 6.906 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.254e-05/0.3221, allocations: 1.5 kB / 0.539 GB, free: 6.906 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-06/0.3222, allocations: 4.031 kB / 0.539 GB, free: 6.902 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.298e-05/0.3222, allocations: 75.28 kB / 0.539 GB, free: 6.828 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3222, allocations: 1.375 kB / 0.539 GB, free: 6.828 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009276/0.3231, allocations: 275.3 kB / 0.5393 GB, free: 6.793 MB / 398.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.001529/0.3247, allocations: 0.9324 MB / 0.5402 GB, free: 6.004 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 8.652e-05/0.3248, allocations: 61.45 kB / 0.5403 GB, free: 5.938 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3248, allocations: 3.938 kB / 0.5403 GB, free: 5.934 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.812e-05/0.3248, allocations: 55.22 kB / 0.5403 GB, free: 5.871 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001184/0.3249, allocations: 1.438 kB / 0.5403 GB, free: 5.871 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004339/0.3254, allocations: 168.3 kB / 0.5405 GB, free: 5.699 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001977/0.3256, allocations: 0.6741 MB / 0.5411 GB, free: 5 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.632e-06/0.3256, allocations: 1.312 kB / 0.5411 GB, free: 5 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.409e-05/0.3256, allocations: 12.91 kB / 0.5412 GB, free: 4.988 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3256, allocations: 0 / 0.5412 GB, free: 4.988 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03072/0.3563, allocations: 8.207 MB / 0.5492 GB, free: 14.22 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.801/8.158, allocations: 15.41 kB / 0.5492 GB, free: 14.21 MB / 414.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2b_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestMatrices2b.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestMatrices2b.pipe 2>&1)