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.001571/0.001571, allocations: 114.4 kB / 17.78 MB, free: 5.266 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.001451/0.001452, allocations: 187 kB / 18.71 MB, free: 4.344 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.395/1.395, allocations: 222.9 MB / 242.4 MB, free: 15.17 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.2083/0.2083, allocations: 44.18 MB / 336.7 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 63.89 kB / 470 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3892/0.3906, allocations: 60.83 MB / 0.5184 GB, free: 3.547 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2b): time 0.001932/0.3925, allocations: 489.8 kB / 0.5189 GB, free: 3.262 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003128/0.3957, allocations: 2.101 MB / 0.5209 GB, free: 1.793 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.505e-05/0.3957, allocations: 0 / 0.5209 GB, free: 1.793 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 3.344e-05/0.3958, allocations: 1.531 kB / 0.5209 GB, free: 1.793 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.865e-06/0.3958, allocations: 4 kB / 0.5209 GB, free: 1.789 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.00249/0.3983, allocations: 0.7195 MB / 0.5216 GB, free: 1.512 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.648e-05/0.3984, allocations: 5.891 kB / 0.5216 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.93e-05/0.3985, allocations: 1.906 kB / 0.5216 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.787e-05/0.3985, allocations: 1.125 kB / 0.5216 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.824e-05/0.3985, allocations: 0 / 0.5216 GB, free: 1.508 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.901e-06/0.3985, allocations: 3.938 kB / 0.5216 GB, free: 1.504 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003051/0.4016, allocations: 1.503 MB / 0.5231 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.174e-05/0.4016, allocations: 4.641 kB / 0.5231 GB, free: 1.164 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.237e-05/0.4016, allocations: 1.25 kB / 0.5231 GB, free: 1.164 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002675/0.4043, allocations: 1.54 MB / 0.5246 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.782e-06/0.4043, allocations: 0 / 0.5246 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4043, allocations: 1.562 kB / 0.5246 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.555e-06/0.4044, allocations: 0 / 0.5246 GB, free: 0.6172 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.001364/0.4057, allocations: 420.7 kB / 0.525 GB, free: 184 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.003e-05/0.4058, allocations: 13.53 kB / 0.525 GB, free: 180 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.456e-05/0.4058, allocations: 34.75 kB / 0.5251 GB, free: 136 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.253e-05/0.4059, allocations: 1.781 kB / 0.5251 GB, free: 136 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001105/0.406, allocations: 161.5 kB / 0.5252 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.406, allocations: 8.359 kB / 0.5252 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.051e-05/0.406, allocations: 4.844 kB / 0.5252 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001012/0.4062, allocations: 35.98 kB / 0.5253 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.4062, allocations: 0 / 0.5253 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.717e-06/0.4062, allocations: 1.781 kB / 0.5253 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.4062, allocations: 0 / 0.5253 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.204e-05/0.4062, allocations: 5.656 kB / 0.5253 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001663/0.4064, allocations: 145.7 kB / 0.5254 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.184e-05/0.4065, allocations: 29.09 kB / 0.5254 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.775e-05/0.4065, allocations: 6.016 kB / 0.5255 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.946e-06/0.4065, allocations: 0 / 0.5255 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.671e-05/0.4066, allocations: 61.73 kB / 0.5255 GB, free: 15.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.41e-07/0.4066, allocations: 0 / 0.5255 GB, free: 15.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002049/0.4068, allocations: 68 kB / 0.5256 GB, free: 15.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.047e-05/0.4069, allocations: 81.09 kB / 0.5257 GB, free: 15.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.208e-05/0.4069, allocations: 89.86 kB / 0.5257 GB, free: 15.31 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.4069, allocations: 27.36 kB / 0.5258 GB, free: 15.28 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.776e-05/0.407, allocations: 80.14 kB / 0.5258 GB, free: 15.2 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.64e-05/0.407, allocations: 6.297 kB / 0.5258 GB, free: 15.19 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.444e-05/0.4071, allocations: 16.72 kB / 0.5259 GB, free: 15.17 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.4072, allocations: 311 kB / 0.5262 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.154e-05/0.4072, allocations: 9.875 kB / 0.5262 GB, free: 14.85 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.619e-06/0.4072, allocations: 0 / 0.5262 GB, free: 14.85 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.939e-05/0.4073, allocations: 59.39 kB / 0.5262 GB, free: 14.78 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.4073, allocations: 0 / 0.5262 GB, free: 14.78 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.875e-05/0.4074, allocations: 74.55 kB / 0.5263 GB, free: 14.7 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.187e-05/0.4074, allocations: 30.67 kB / 0.5263 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.4074, allocations: 1.531 kB / 0.5263 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.4074, allocations: 0 / 0.5263 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.082e-06/0.4074, allocations: 4.094 kB / 0.5263 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.4075, allocations: 0 / 0.5263 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.995e-05/0.4075, allocations: 1.156 kB / 0.5263 GB, free: 14.67 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.4075, allocations: 0.9062 kB / 0.5263 GB, free: 14.67 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 0.0001026/0.4076, allocations: 137.8 kB / 0.5265 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.107e-05/0.4076, allocations: 5.281 kB / 0.5265 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.327e-05/0.4076, allocations: 3.125 kB / 0.5265 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.4077, allocations: 0 / 0.5265 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.778e-06/0.4077, allocations: 1.375 kB / 0.5265 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.4077, allocations: 4 kB / 0.5265 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001284/0.4078, allocations: 154.9 kB / 0.5266 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.4078, allocations: 0 / 0.5266 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.51e-07/0.4078, allocations: 1.281 kB / 0.5266 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.4078, allocations: 0 / 0.5266 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.746e-06/0.4078, allocations: 1.125 kB / 0.5266 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.4078, allocations: 3.938 kB / 0.5266 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.4079, allocations: 1.25 kB / 0.5266 GB, free: 14.3 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001598/0.408, allocations: 101.3 kB / 0.5267 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.86e-05/0.4081, allocations: 77.11 kB / 0.5268 GB, free: 14.1 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.576e-05/0.4081, allocations: 5.25 kB / 0.5268 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.065e-05/0.4081, allocations: 1.375 kB / 0.5268 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.011e-05/0.4081, allocations: 0 / 0.5268 GB, free: 14.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.507e-06/0.4081, allocations: 1.281 kB / 0.5268 GB, free: 14.09 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.538e-05/0.4082, allocations: 75.28 kB / 0.5269 GB, free: 14.02 MB / 398.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4082, allocations: 0 / 0.5269 GB, free: 14.02 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001557/0.4097, allocations: 272.4 kB / 0.5271 GB, free: 13.99 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.001715/0.4114, allocations: 0.9449 MB / 0.5281 GB, free: 13.19 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001042/0.4116, allocations: 60.34 kB / 0.5281 GB, free: 13.12 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.4116, allocations: 1.406 kB / 0.5281 GB, free: 13.12 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.841e-05/0.4116, allocations: 53.62 kB / 0.5282 GB, free: 13.06 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001283/0.4117, allocations: 13.09 kB / 0.5282 GB, free: 13.05 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005409/0.4123, allocations: 157.5 kB / 0.5283 GB, free: 12.89 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002164/0.4125, allocations: 0.6744 MB / 0.529 GB, free: 12.2 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.782e-06/0.4125, allocations: 3.938 kB / 0.529 GB, free: 12.19 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.683e-05/0.4126, allocations: 8.594 kB / 0.529 GB, free: 12.18 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4126, allocations: 0 / 0.529 GB, free: 12.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03452/0.4471, allocations: 8.209 MB / 0.537 GB, free: 7.832 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.648/8.095, allocations: 6.875 kB / 0.537 GB, free: 7.828 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)