Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001135/0.001135, allocations: 103.7 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 192 kB / 18.56 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2103/0.2103, allocations: 44.18 MB / 336.6 MB, free: 2.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 63.86 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09578/0.09705, allocations: 60.83 MB / 469.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001397/0.09849, allocations: 483.7 kB / 469.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005678/0.1042, allocations: 4.827 MB / 474.7 MB, free: 8.934 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.232e-05/0.1042, allocations: 4 kB / 474.7 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.117e-06/0.1042, allocations: 0 / 474.7 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.968e-06/0.1042, allocations: 4 kB / 474.7 MB, free: 8.926 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.005104/0.1093, allocations: 2.933 MB / 477.6 MB, free: 6.004 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.704e-05/0.1094, allocations: 3.984 kB / 477.6 MB, free: 6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.058e-05/0.1094, allocations: 11.92 kB / 477.6 MB, free: 5.988 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.122e-05/0.1094, allocations: 0 / 477.6 MB, free: 5.988 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.226e-05/0.1095, allocations: 0 / 477.6 MB, free: 5.988 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.217e-06/0.1095, allocations: 0 / 477.6 MB, free: 5.988 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01955/0.129, allocations: 18.55 MB / 496.2 MB, free: 3.422 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.544e-06/0.1291, allocations: 0 / 496.2 MB, free: 3.422 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.741e-05/0.1291, allocations: 4 kB / 496.2 MB, free: 3.418 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.191/0.3201, allocations: 27.47 MB / 0.5114 GB, free: 27.99 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.812e-06/0.3201, allocations: 1.062 kB / 0.5114 GB, free: 27.99 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3201, allocations: 0 / 0.5114 GB, free: 27.99 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.231e-06/0.3201, allocations: 3.062 kB / 0.5114 GB, free: 27.99 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.01061/0.3307, allocations: 0.6519 MB / 0.512 GB, free: 27.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.3308, allocations: 9.531 kB / 0.512 GB, free: 27.5 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.842e-05/0.3308, allocations: 31.88 kB / 0.512 GB, free: 27.46 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.795e-05/0.3308, allocations: 2.625 kB / 0.512 GB, free: 27.46 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.619e-05/0.3309, allocations: 168.9 kB / 0.5122 GB, free: 27.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.367e-06/0.3309, allocations: 0 / 0.5122 GB, free: 27.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.946e-06/0.3309, allocations: 1.625 kB / 0.5122 GB, free: 27.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.794e-05/0.331, allocations: 29.98 kB / 0.5122 GB, free: 27.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.831e-06/0.331, allocations: 0.9688 kB / 0.5122 GB, free: 27.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.033e-06/0.331, allocations: 1.375 kB / 0.5122 GB, free: 27.23 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.331, allocations: 1.594 kB / 0.5122 GB, free: 27.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.467e-05/0.3311, allocations: 5.812 kB / 0.5122 GB, free: 27.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.593e-05/0.3311, allocations: 150.1 kB / 0.5124 GB, free: 27.04 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.128e-05/0.3312, allocations: 22.33 kB / 0.5124 GB, free: 27.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.281e-05/0.3312, allocations: 9.234 kB / 0.5124 GB, free: 27.01 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.394e-06/0.3312, allocations: 1.375 kB / 0.5124 GB, free: 27.01 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.658e-05/0.3312, allocations: 61.41 kB / 0.5125 GB, free: 26.94 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.21e-07/0.3312, allocations: 2.219 kB / 0.5125 GB, free: 26.94 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001283/0.3314, allocations: 64.61 kB / 0.5125 GB, free: 26.88 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.438e-05/0.3314, allocations: 80.97 kB / 0.5126 GB, free: 26.79 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.452e-05/0.3314, allocations: 91.44 kB / 0.5127 GB, free: 26.69 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.992e-06/0.3314, allocations: 25.7 kB / 0.5127 GB, free: 26.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.376e-06/0.3315, allocations: 82.08 kB / 0.5128 GB, free: 26.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.191e-05/0.3315, allocations: 1.094 kB / 0.5128 GB, free: 26.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.249e-05/0.3315, allocations: 16.62 kB / 0.5128 GB, free: 26.56 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.433e-05/0.3315, allocations: 320.7 kB / 0.5131 GB, free: 26.24 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.236e-06/0.3316, allocations: 1.375 kB / 0.5131 GB, free: 26.24 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.152e-06/0.3316, allocations: 2.078 kB / 0.5131 GB, free: 26.24 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.845e-05/0.3316, allocations: 61.34 kB / 0.5132 GB, free: 26.17 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.3316, allocations: 1.688 kB / 0.5132 GB, free: 26.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.23e-05/0.3317, allocations: 67.64 kB / 0.5133 GB, free: 26.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.3317, allocations: 30.95 kB / 0.5133 GB, free: 26.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.3317, allocations: 1 kB / 0.5133 GB, free: 26.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.048e-05/0.3317, allocations: 5.062 kB / 0.5133 GB, free: 26.08 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.393e-06/0.3317, allocations: 3.844 kB / 0.5133 GB, free: 26.08 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.928e-06/0.3317, allocations: 0 / 0.5133 GB, free: 26.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.567e-05/0.3318, allocations: 1.281 kB / 0.5133 GB, free: 26.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.46e-06/0.3318, allocations: 0 / 0.5133 GB, free: 26.08 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.046e-05/0.3318, allocations: 138 kB / 0.5134 GB, free: 25.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.315e-06/0.3318, allocations: 2.781 kB / 0.5134 GB, free: 25.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.875e-06/0.3318, allocations: 5.656 kB / 0.5134 GB, free: 25.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.92e-07/0.3318, allocations: 0 / 0.5134 GB, free: 25.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3319, allocations: 6.359 kB / 0.5134 GB, free: 25.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.3319, allocations: 0 / 0.5134 GB, free: 25.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.441e-05/0.3319, allocations: 154.8 kB / 0.5136 GB, free: 25.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.21e-07/0.3319, allocations: 0 / 0.5136 GB, free: 25.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.092e-06/0.3319, allocations: 0 / 0.5136 GB, free: 25.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.72e-07/0.3319, allocations: 6.75 kB / 0.5136 GB, free: 25.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.09e-06/0.3319, allocations: 0 / 0.5136 GB, free: 25.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.3319, allocations: 1.406 kB / 0.5136 GB, free: 25.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3319, allocations: 0 / 0.5136 GB, free: 25.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.188e-05/0.332, allocations: 93.45 kB / 0.5137 GB, free: 25.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.273e-05/0.332, allocations: 85.25 kB / 0.5138 GB, free: 25.54 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.164e-05/0.3321, allocations: 5.188 kB / 0.5138 GB, free: 25.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.024e-05/0.3321, allocations: 2.906 kB / 0.5138 GB, free: 25.54 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.174e-05/0.3321, allocations: 0.9688 kB / 0.5138 GB, free: 25.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.3321, allocations: 0.8438 kB / 0.5138 GB, free: 25.54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.107e-06/0.3321, allocations: 76.62 kB / 0.5138 GB, free: 25.46 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3321, allocations: 0 / 0.5138 GB, free: 25.46 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.01283/0.3449, allocations: 3.785 MB / 0.5175 GB, free: 25.37 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.03021/0.3752, allocations: 1.497 MB / 0.519 GB, free: 24.63 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001139/0.3753, allocations: 61.16 kB / 0.5191 GB, free: 24.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3753, allocations: 0 / 0.5191 GB, free: 24.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.777e-05/0.3754, allocations: 58.62 kB / 0.5191 GB, free: 24.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001607/0.3755, allocations: 7.906 kB / 0.5191 GB, free: 24.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009816/0.3853, allocations: 329.7 kB / 0.5194 GB, free: 24.28 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000118/0.3855, allocations: 0.6728 MB / 0.5201 GB, free: 23.58 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.845e-06/0.3855, allocations: 0 / 0.5201 GB, free: 23.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.725e-05/0.3856, allocations: 11.25 kB / 0.5201 GB, free: 23.57 MB / 382.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3856, allocations: 3.938 kB / 0.5201 GB, free: 23.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1858/0.5713, allocations: 113.8 MB / 0.6312 GB, free: 8.445 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.31/16.88, allocations: 9.656 kB / 0.6313 GB, free: 8.438 MB / 478.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2.pipe 2>&1)