Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.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.TestMatrices3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices3",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.0013/0.001299, allocations: 110.4 kB / 17.78 MB, free: 5.27 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.00124/0.00124, allocations: 183.1 kB / 18.71 MB, free: 4.348 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.355/1.355, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2189/0.2189, allocations: 44.18 MB / 336.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001504/0.001504, allocations: 59.91 kB / 470 MB, free: 13.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3681/0.3696, allocations: 60.82 MB / 0.5184 GB, free: 3.531 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices3): time 0.001648/0.3713, allocations: 497.6 kB / 0.5189 GB, free: 3.234 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002054/0.3734, allocations: 1.523 MB / 0.5204 GB, free: 2.137 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.206e-05/0.3734, allocations: 0 / 0.5204 GB, free: 2.137 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.544e-05/0.3735, allocations: 0 / 0.5204 GB, free: 2.137 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.202e-06/0.3735, allocations: 0 / 0.5204 GB, free: 2.137 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.001157/0.3747, allocations: 223.2 kB / 0.5206 GB, free: 2.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.387e-05/0.3748, allocations: 5.25 kB / 0.5206 GB, free: 2.066 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.738e-05/0.3748, allocations: 1.672 kB / 0.5206 GB, free: 2.066 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.922e-05/0.3749, allocations: 3.984 kB / 0.5206 GB, free: 2.062 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.167e-05/0.3749, allocations: 1.891 kB / 0.5206 GB, free: 2.062 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.781e-06/0.3749, allocations: 0 / 0.5206 GB, free: 2.062 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001596/0.3765, allocations: 0.6995 MB / 0.5213 GB, free: 1.938 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.206e-05/0.3765, allocations: 3.938 kB / 0.5213 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.467e-05/0.3766, allocations: 5.391 kB / 0.5213 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001662/0.3782, allocations: 0.6378 MB / 0.5219 GB, free: 1.844 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.196e-06/0.3783, allocations: 5.656 kB / 0.5219 GB, free: 1.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.3783, allocations: 0 / 0.5219 GB, free: 1.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.3783, allocations: 4 kB / 0.5219 GB, free: 1.836 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.000859/0.3792, allocations: 361.4 kB / 0.5223 GB, free: 1.445 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/0.3792, allocations: 8.906 kB / 0.5223 GB, free: 1.445 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.259e-05/0.3793, allocations: 32.61 kB / 0.5223 GB, free: 1.406 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.223e-05/0.3793, allocations: 2.062 kB / 0.5223 GB, free: 1.406 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.024e-05/0.3794, allocations: 161 kB / 0.5225 GB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.334e-05/0.3794, allocations: 384 / 0.5225 GB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.185e-06/0.3794, allocations: 1.969 kB / 0.5225 GB, free: 1.211 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.875e-05/0.3795, allocations: 45.45 kB / 0.5225 GB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.3795, allocations: 1.344 kB / 0.5225 GB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.008e-05/0.3795, allocations: 0 / 0.5225 GB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.3795, allocations: 3.938 kB / 0.5225 GB, free: 1.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.047e-05/0.3796, allocations: 1.562 kB / 0.5225 GB, free: 1.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001088/0.3797, allocations: 144.9 kB / 0.5226 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.097e-05/0.3797, allocations: 17.34 kB / 0.5227 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.53e-05/0.3798, allocations: 6.547 kB / 0.5227 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.117e-06/0.3798, allocations: 4 kB / 0.5227 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.973e-05/0.3798, allocations: 70.38 kB / 0.5227 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 1.683e-06/0.3798, allocations: 0 / 0.5227 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001787/0.38, allocations: 60.67 kB / 0.5228 GB, free: 0.793 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.845e-05/0.3801, allocations: 79.5 kB / 0.5229 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.391e-05/0.3801, allocations: 89.86 kB / 0.523 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.037e-06/0.3801, allocations: 26.55 kB / 0.523 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.256e-05/0.3801, allocations: 81.14 kB / 0.5231 GB, free: 500 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.239e-05/0.3802, allocations: 9.094 kB / 0.5231 GB, free: 492 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.183e-05/0.3802, allocations: 16.64 kB / 0.5231 GB, free: 472 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.576e-05/0.3802, allocations: 310.8 kB / 0.5234 GB, free: 152 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.26e-05/0.3803, allocations: 1.984 kB / 0.5234 GB, free: 152 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.596e-06/0.3803, allocations: 1.125 kB / 0.5234 GB, free: 152 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.812e-05/0.3803, allocations: 64.41 kB / 0.5234 GB, free: 76 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3803, allocations: 0 / 0.5234 GB, free: 76 kB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.873e-05/0.3804, allocations: 69.66 kB / 0.5235 GB, free: 4 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.037e-05/0.3805, allocations: 34.58 kB / 0.5235 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.3805, allocations: 0 / 0.5235 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.3805, allocations: 2.125 kB / 0.5235 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.094e-06/0.3805, allocations: 0.6562 kB / 0.5235 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.92e-06/0.3805, allocations: 0 / 0.5235 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.831e-05/0.3806, allocations: 0 / 0.5235 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.764e-06/0.3806, allocations: 2.953 kB / 0.5236 GB, free: 15.97 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 9.346e-05/0.3807, allocations: 134.8 kB / 0.5237 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.273e-05/0.3807, allocations: 7.969 kB / 0.5237 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.559e-05/0.3807, allocations: 7.734 kB / 0.5237 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.127e-06/0.3807, allocations: 6.391 kB / 0.5237 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.3807, allocations: 0 / 0.5237 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.3807, allocations: 0 / 0.5237 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001087/0.3809, allocations: 146.2 kB / 0.5238 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.207e-06/0.3809, allocations: 0 / 0.5238 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.382e-06/0.3809, allocations: 8.438 kB / 0.5238 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.848e-06/0.3809, allocations: 3.938 kB / 0.5239 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.3809, allocations: 7.844 kB / 0.5239 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.3809, allocations: 4 kB / 0.5239 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3809, allocations: 0 / 0.5239 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001119/0.381, allocations: 87.38 kB / 0.5239 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.025e-05/0.3811, allocations: 86.59 kB / 0.524 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.495e-05/0.3811, allocations: 1.938 kB / 0.524 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.231e-05/0.3811, allocations: 0 / 0.524 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.25e-05/0.3811, allocations: 1.094 kB / 0.524 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.571e-06/0.3811, allocations: 2.203 kB / 0.524 GB, free: 15.4 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.856e-05/0.3812, allocations: 79.31 kB / 0.5241 GB, free: 15.32 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3812, allocations: 0 / 0.5241 GB, free: 15.32 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001037/0.3822, allocations: 121.2 kB / 0.5242 GB, free: 15.31 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.002024/0.3843, allocations: 0.7141 MB / 0.5249 GB, free: 14.64 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001221/0.3844, allocations: 57.67 kB / 0.525 GB, free: 14.58 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.3844, allocations: 1.312 kB / 0.525 GB, free: 14.58 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.882e-05/0.3845, allocations: 58.88 kB / 0.525 GB, free: 14.52 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001619/0.3847, allocations: 6.562 kB / 0.525 GB, free: 14.51 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007267/0.3854, allocations: 123.2 kB / 0.5252 GB, free: 14.37 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002608/0.3857, allocations: 0.675 MB / 0.5258 GB, free: 13.67 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.525e-06/0.3857, allocations: 1 kB / 0.5258 GB, free: 13.67 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.438e-05/0.3857, allocations: 7.438 kB / 0.5258 GB, free: 13.66 MB / 398.1 MB Notification: Performance of SimCode: time 1.864e-06/0.3857, allocations: 0 / 0.5258 GB, free: 13.66 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02726/0.413, allocations: 4.728 MB / 0.5304 GB, free: 11.42 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.537/7.95, allocations: 3.094 kB / 0.5304 GB, free: 11.42 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices3_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices3.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices3.pipe 2>&1)