Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.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.TestMatrices2b,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2b",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2b,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2b",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.001148/0.001148, 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.001235/0.001235, allocations: 183.8 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.27/1.27, 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.1988/0.1988, allocations: 44.18 MB / 336.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 63.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.3217, allocations: 60.82 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.001381/0.3232, allocations: 0.4927 MB / 0.5189 GB, free: 2.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002389/0.3256, allocations: 2.094 MB / 0.5209 GB, free: 1.516 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.023e-05/0.3256, allocations: 1.188 kB / 0.5209 GB, free: 1.516 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.14e-05/0.3256, allocations: 0 / 0.5209 GB, free: 1.516 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.869e-06/0.3256, allocations: 0 / 0.5209 GB, free: 1.516 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.001761/0.3274, allocations: 0.7239 MB / 0.5216 GB, free: 1.234 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.777e-05/0.3275, allocations: 5.281 kB / 0.5216 GB, free: 1.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.518e-05/0.3275, allocations: 2.484 kB / 0.5216 GB, free: 1.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.174e-05/0.3275, allocations: 0 / 0.5216 GB, free: 1.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.766e-05/0.3275, allocations: 4.938 kB / 0.5216 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.45e-06/0.3276, allocations: 7.938 kB / 0.5217 GB, free: 1.219 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001973/0.3295, allocations: 1.496 MB / 0.5231 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.337e-06/0.3296, allocations: 4 kB / 0.5231 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.834e-05/0.3296, allocations: 0 / 0.5231 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001706/0.3313, allocations: 1.548 MB / 0.5246 GB, free: 380 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.3313, allocations: 0 / 0.5246 GB, free: 380 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3313, allocations: 5.656 kB / 0.5246 GB, free: 376 kB / 382.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.3313, allocations: 0 / 0.5246 GB, free: 376 kB / 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.0005718/0.3319, allocations: 416.6 kB / 0.525 GB, free: 15.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.3319, allocations: 9.625 kB / 0.525 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.17e-05/0.332, allocations: 30.75 kB / 0.5251 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.378e-05/0.332, allocations: 2.312 kB / 0.5251 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.801e-05/0.3321, allocations: 164.4 kB / 0.5252 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.097e-05/0.3321, allocations: 1.75 kB / 0.5252 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.914e-06/0.3321, allocations: 3.938 kB / 0.5252 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.564e-05/0.3322, allocations: 36.39 kB / 0.5253 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.3323, allocations: 0 / 0.5253 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.3323, allocations: 5.375 kB / 0.5253 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.3323, allocations: 3.984 kB / 0.5253 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.268e-05/0.3323, allocations: 1.375 kB / 0.5253 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001555/0.3325, allocations: 143.1 kB / 0.5254 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.989e-05/0.3325, allocations: 23.88 kB / 0.5254 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.459e-05/0.3325, allocations: 6.234 kB / 0.5254 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.488e-06/0.3325, allocations: 4 kB / 0.5254 GB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.563e-05/0.3326, allocations: 65.58 kB / 0.5255 GB, free: 15.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.3326, allocations: 0 / 0.5255 GB, free: 15.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001765/0.3328, allocations: 59.66 kB / 0.5256 GB, free: 15.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.29e-05/0.3328, allocations: 81.09 kB / 0.5256 GB, free: 15.18 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.555e-05/0.3329, allocations: 91.23 kB / 0.5257 GB, free: 15.08 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.3329, allocations: 25.7 kB / 0.5258 GB, free: 15.05 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.83e-05/0.333, allocations: 84.27 kB / 0.5258 GB, free: 14.96 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.064e-05/0.333, allocations: 7.531 kB / 0.5258 GB, free: 14.96 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.768e-05/0.333, allocations: 15.09 kB / 0.5259 GB, free: 14.94 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.3331, allocations: 316.2 kB / 0.5262 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.448e-06/0.3331, allocations: 0 / 0.5262 GB, free: 14.62 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.778e-06/0.3332, allocations: 9.312 kB / 0.5262 GB, free: 14.61 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.434e-05/0.3332, allocations: 60.39 kB / 0.5262 GB, free: 14.54 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3332, allocations: 0 / 0.5262 GB, free: 14.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.232e-05/0.3333, allocations: 78.2 kB / 0.5263 GB, free: 14.46 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.272e-05/0.3334, allocations: 31.2 kB / 0.5263 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.3334, allocations: 0 / 0.5263 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.3334, allocations: 0 / 0.5263 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.022e-06/0.3334, allocations: 1.375 kB / 0.5263 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.3334, allocations: 0 / 0.5263 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.512e-05/0.3334, allocations: 1.375 kB / 0.5263 GB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-06/0.3334, allocations: 0 / 0.5263 GB, free: 14.43 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.343e-05/0.3335, allocations: 138.3 kB / 0.5265 GB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.097e-06/0.3335, allocations: 7.938 kB / 0.5265 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.819e-06/0.3335, allocations: 4.5 kB / 0.5265 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.3335, allocations: 0 / 0.5265 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.3336, allocations: 3.938 kB / 0.5265 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.3336, allocations: 1.375 kB / 0.5265 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.172e-05/0.3336, allocations: 151 kB / 0.5266 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.3337, allocations: 0 / 0.5266 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.51e-07/0.3337, allocations: 0 / 0.5266 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.092e-06/0.3337, allocations: 1.375 kB / 0.5266 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.561e-06/0.3337, allocations: 0 / 0.5266 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.3337, allocations: 5.375 kB / 0.5266 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.3337, allocations: 0 / 0.5266 GB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.54e-05/0.3338, allocations: 97.77 kB / 0.5267 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.064e-05/0.3338, allocations: 77.11 kB / 0.5268 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.146e-05/0.3338, allocations: 1.375 kB / 0.5268 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.107e-06/0.3338, allocations: 0 / 0.5268 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.295e-05/0.3339, allocations: 1.375 kB / 0.5268 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-06/0.3339, allocations: 5.406 kB / 0.5268 GB, free: 13.86 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.176e-05/0.3339, allocations: 75.28 kB / 0.5269 GB, free: 13.79 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3339, allocations: 0 / 0.5269 GB, free: 13.79 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009425/0.3348, allocations: 272.9 kB / 0.5271 GB, free: 13.75 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.001543/0.3364, allocations: 0.9513 MB / 0.5281 GB, free: 12.95 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001151/0.3365, allocations: 64.12 kB / 0.5281 GB, free: 12.88 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3365, allocations: 0 / 0.5281 GB, free: 12.88 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.458e-05/0.3366, allocations: 58.53 kB / 0.5282 GB, free: 12.82 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001319/0.3367, allocations: 2.469 kB / 0.5282 GB, free: 12.82 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005389/0.3373, allocations: 157.4 kB / 0.5283 GB, free: 12.66 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002725/0.3375, allocations: 0.6777 MB / 0.529 GB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.274e-06/0.3376, allocations: 0 / 0.529 GB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.515e-05/0.3376, allocations: 8.781 kB / 0.529 GB, free: 11.95 MB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3376, allocations: 4.125 kB / 0.529 GB, free: 11.94 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02981/0.3674, allocations: 8.209 MB / 0.537 GB, free: 7.59 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.524/7.891, allocations: 10.11 kB / 0.537 GB, free: 7.582 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2b_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices2b.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices2b.pipe 2>&1)