Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.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.TestMatrices,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices",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.001141/0.001141, allocations: 110.4 kB / 17.78 MB, free: 5.289 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.001803/0.001814, allocations: 183.1 kB / 18.71 MB, free: 4.363 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.365/1.365, 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.2161/0.2161, allocations: 44.2 MB / 336.8 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 63.91 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3573/0.3587, allocations: 60.83 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.00156/0.3603, allocations: 494.5 kB / 0.5189 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002203/0.3625, allocations: 1.565 MB / 0.5204 GB, free: 1.855 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.135e-05/0.3625, allocations: 0 / 0.5204 GB, free: 1.855 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.601e-05/0.3625, allocations: 0 / 0.5204 GB, free: 1.855 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.384e-06/0.3626, allocations: 1.188 kB / 0.5204 GB, free: 1.855 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:171:3-212:15:writable] Warning: Pure function 'ModelicaTest.Math.Matrices' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001138/0.3637, allocations: 267.7 kB / 0.5207 GB, free: 1.777 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.632e-05/0.3638, allocations: 6.688 kB / 0.5207 GB, free: 1.773 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.554e-05/0.3638, allocations: 1.172 kB / 0.5207 GB, free: 1.773 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.399e-05/0.3639, allocations: 5.328 kB / 0.5207 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.248e-05/0.3639, allocations: 1.406 kB / 0.5207 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.324e-06/0.3639, allocations: 0 / 0.5207 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009571/0.3649, allocations: 496.6 kB / 0.5211 GB, free: 1.656 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.338e-06/0.3649, allocations: 1.406 kB / 0.5212 GB, free: 1.656 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.873e-05/0.3649, allocations: 0.7031 kB / 0.5212 GB, free: 1.656 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005778/0.3655, allocations: 301.4 kB / 0.5214 GB, free: 1.598 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3655, allocations: 0 / 0.5214 GB, free: 1.598 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.3655, allocations: 0 / 0.5214 GB, free: 1.598 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.213e-06/0.3655, allocations: 0 / 0.5214 GB, free: 1.598 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.0003714/0.3659, allocations: 378.3 kB / 0.5218 GB, free: 1.191 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.415e-05/0.366, allocations: 9.312 kB / 0.5218 GB, free: 1.191 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.598e-05/0.366, allocations: 36.12 kB / 0.5218 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.978e-05/0.3661, allocations: 1.922 kB / 0.5218 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.694e-05/0.3661, allocations: 165.3 kB / 0.522 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.706e-05/0.3662, allocations: 9.469 kB / 0.522 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.125e-05/0.3662, allocations: 1.594 kB / 0.522 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001205/0.3663, allocations: 34.02 kB / 0.522 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.3663, allocations: 0 / 0.522 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.3663, allocations: 0 / 0.522 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.3663, allocations: 1.156 kB / 0.522 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.666e-05/0.3664, allocations: 5.188 kB / 0.5221 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001367/0.3665, allocations: 149.1 kB / 0.5222 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.659e-05/0.3666, allocations: 20.89 kB / 0.5222 GB, free: 0.6836 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.019e-05/0.3666, allocations: 6.734 kB / 0.5222 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.005e-05/0.3666, allocations: 0 / 0.5222 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.988e-05/0.3667, allocations: 65.86 kB / 0.5223 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.3667, allocations: 0 / 0.5223 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002152/0.3669, allocations: 65.55 kB / 0.5223 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.599e-05/0.367, allocations: 78.92 kB / 0.5224 GB, free: 448 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.52e-05/0.367, allocations: 90.56 kB / 0.5225 GB, free: 348 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.686e-06/0.367, allocations: 30.64 kB / 0.5225 GB, free: 312 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.136e-05/0.367, allocations: 80.14 kB / 0.5226 GB, free: 228 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.871e-05/0.367, allocations: 1.125 kB / 0.5226 GB, free: 228 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.397e-05/0.3671, allocations: 16.56 kB / 0.5226 GB, free: 208 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.425e-05/0.3672, allocations: 311.5 kB / 0.5229 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.288e-06/0.3672, allocations: 9.094 kB / 0.5229 GB, free: 15.88 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.753e-06/0.3672, allocations: 2.531 kB / 0.5229 GB, free: 15.88 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.759e-05/0.3672, allocations: 59.48 kB / 0.523 GB, free: 15.81 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3673, allocations: 0 / 0.523 GB, free: 15.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.341e-05/0.3673, allocations: 65.45 kB / 0.5231 GB, free: 15.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.835e-05/0.3674, allocations: 35.73 kB / 0.5231 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.3674, allocations: 3.938 kB / 0.5231 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.42e-05/0.3674, allocations: 0.6562 kB / 0.5231 GB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.12e-07/0.3674, allocations: 5.062 kB / 0.5231 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.3674, allocations: 0 / 0.5231 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.867e-05/0.3675, allocations: 5.688 kB / 0.5231 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.788e-06/0.3675, allocations: 1 kB / 0.5231 GB, free: 15.7 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 8.142e-05/0.3676, allocations: 138.9 kB / 0.5232 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.521e-05/0.3676, allocations: 5.562 kB / 0.5232 GB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.179e-05/0.3676, allocations: 3.875 kB / 0.5232 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.3676, allocations: 0 / 0.5232 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.952e-06/0.3676, allocations: 2.234 kB / 0.5232 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.3676, allocations: 4 kB / 0.5233 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001055/0.3677, allocations: 147.1 kB / 0.5234 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.3677, allocations: 0 / 0.5234 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.953e-06/0.3677, allocations: 1.656 kB / 0.5234 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.3678, allocations: 3.938 kB / 0.5234 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-06/0.3678, allocations: 1.125 kB / 0.5234 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.3678, allocations: 0.75 kB / 0.5234 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.3678, allocations: 1.094 kB / 0.5234 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.827e-05/0.3679, allocations: 95.67 kB / 0.5235 GB, free: 15.24 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.613e-05/0.3679, allocations: 82.81 kB / 0.5236 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.545e-05/0.3679, allocations: 5.875 kB / 0.5236 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.287e-06/0.368, allocations: 1.188 kB / 0.5236 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.604e-05/0.368, allocations: 0.6094 kB / 0.5236 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.306e-06/0.368, allocations: 5.094 kB / 0.5236 GB, free: 15.14 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.858e-05/0.368, allocations: 75.28 kB / 0.5237 GB, free: 15.06 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.368, allocations: 0 / 0.5237 GB, free: 15.06 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003731/0.3684, allocations: 64.05 kB / 0.5237 GB, free: 15.05 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.0008562/0.3693, allocations: 0.7285 MB / 0.5244 GB, free: 14.38 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001242/0.3694, allocations: 58.69 kB / 0.5245 GB, free: 14.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3694, allocations: 3.938 kB / 0.5245 GB, free: 14.31 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.95e-05/0.3695, allocations: 59.12 kB / 0.5245 GB, free: 14.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001295/0.3696, allocations: 1.688 kB / 0.5245 GB, free: 14.25 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003959/0.37, allocations: 132.7 kB / 0.5247 GB, free: 14.1 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003402/0.3704, allocations: 0.6749 MB / 0.5253 GB, free: 13.4 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.126e-05/0.3704, allocations: 4.75 kB / 0.5253 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.772e-05/0.3704, allocations: 8.906 kB / 0.5253 GB, free: 13.39 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3704, allocations: 0 / 0.5253 GB, free: 13.39 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02037/0.3908, allocations: 2.097 MB / 0.5274 GB, free: 12.7 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.478/7.869, allocations: 9.688 kB / 0.5274 GB, free: 12.69 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe 2>&1)