Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001358/0.001358, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001335/0.001335, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.4 MB / 246.8 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2349/0.2349, allocations: 46.12 MB / 344.2 MB, free: 11.55 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002306/0.002306, allocations: 89.06 kB / 417.8 MB, free: 19.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1185, allocations: 62.46 MB / 480.2 MB, free: 5.129 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices2): time 0.001659/0.1202, allocations: 487.8 kB / 480.7 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00805/0.1283, allocations: 4.876 MB / 485.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.37e-05/0.1284, allocations: 0 / 485.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.206e-05/0.1284, allocations: 3.938 kB / 485.6 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 4.739e-06/0.1284, allocations: 0 / 485.6 MB, free: 15.74 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.007929/0.1364, allocations: 2.934 MB / 488.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 5.657e-05/0.1364, allocations: 8 kB / 488.5 MB, free: 12.81 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.978e-05/0.1365, allocations: 7.984 kB / 488.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.924e-05/0.1365, allocations: 0 / 488.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.538e-05/0.1365, allocations: 0 / 488.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.286e-06/0.1366, allocations: 0 / 488.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03044/0.167, allocations: 18.56 MB / 0.4952 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.361e-05/0.1671, allocations: 0 / 0.4952 GB, free: 10.22 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.019e-05/0.1671, allocations: 7.984 kB / 0.4952 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2273/0.3944, allocations: 27.47 MB / 0.522 GB, free: 27.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.3945, allocations: 0 / 0.522 GB, free: 27.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3945, allocations: 1.5 kB / 0.522 GB, free: 27.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.3945, allocations: 0 / 0.522 GB, free: 27.16 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.01257/0.4071, allocations: 0.649 MB / 0.5227 GB, free: 26.61 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.4071, allocations: 8.781 kB / 0.5227 GB, free: 26.61 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.186e-05/0.4071, allocations: 30.75 kB / 0.5227 GB, free: 26.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.565e-05/0.4072, allocations: 4.75 kB / 0.5227 GB, free: 26.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.001e-05/0.4072, allocations: 172 kB / 0.5229 GB, free: 26.37 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.702e-06/0.4072, allocations: 0 / 0.5229 GB, free: 26.37 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.486e-06/0.4073, allocations: 0 / 0.5229 GB, free: 26.37 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.444e-05/0.4073, allocations: 31.09 kB / 0.5229 GB, free: 26.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.002e-06/0.4073, allocations: 0 / 0.5229 GB, free: 26.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.674e-06/0.4074, allocations: 2.469 kB / 0.5229 GB, free: 26.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.4074, allocations: 0.5312 kB / 0.5229 GB, free: 26.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.476e-05/0.4074, allocations: 0.5312 kB / 0.5229 GB, free: 26.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.18e-05/0.4075, allocations: 159.4 kB / 0.5231 GB, free: 26.14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.947e-05/0.4075, allocations: 17.02 kB / 0.5231 GB, free: 26.12 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.281e-05/0.4075, allocations: 6.516 kB / 0.5231 GB, free: 26.11 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.619e-06/0.4075, allocations: 0 / 0.5231 GB, free: 26.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.679e-05/0.4076, allocations: 59.44 kB / 0.5231 GB, free: 26.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.4076, allocations: 0.7812 kB / 0.5231 GB, free: 26.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001417/0.4077, allocations: 70.73 kB / 0.5232 GB, free: 25.98 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.198e-05/0.4078, allocations: 79.55 kB / 0.5233 GB, free: 25.88 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.58e-05/0.4078, allocations: 91.48 kB / 0.5234 GB, free: 25.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.3e-06/0.4078, allocations: 25.7 kB / 0.5234 GB, free: 25.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.468e-06/0.4078, allocations: 80.14 kB / 0.5235 GB, free: 25.67 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.848e-05/0.4078, allocations: 13 kB / 0.5235 GB, free: 25.67 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.274e-05/0.4079, allocations: 15.5 kB / 0.5235 GB, free: 25.66 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.682e-05/0.4079, allocations: 316.6 kB / 0.5238 GB, free: 25.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.936e-06/0.4079, allocations: 3.812 kB / 0.5238 GB, free: 25.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.029e-06/0.4079, allocations: 0 / 0.5238 GB, free: 25.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.847e-05/0.408, allocations: 66.03 kB / 0.5239 GB, free: 25.27 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.408, allocations: 0 / 0.5239 GB, free: 25.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.03e-05/0.408, allocations: 64 kB / 0.5239 GB, free: 25.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.408, allocations: 32.52 kB / 0.524 GB, free: 25.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.379e-06/0.4081, allocations: 0 / 0.524 GB, free: 25.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.4081, allocations: 0 / 0.524 GB, free: 25.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.513e-06/0.4081, allocations: 3.984 kB / 0.524 GB, free: 25.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.4081, allocations: 0 / 0.524 GB, free: 25.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.568e-05/0.4081, allocations: 5.562 kB / 0.524 GB, free: 25.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.651e-06/0.4081, allocations: 0 / 0.524 GB, free: 25.17 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.453e-05/0.4082, allocations: 137.5 kB / 0.5241 GB, free: 25.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.117e-06/0.4082, allocations: 5.812 kB / 0.5241 GB, free: 25.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.157e-06/0.4082, allocations: 3.125 kB / 0.5241 GB, free: 25.02 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.4082, allocations: 0 / 0.5241 GB, free: 25.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.4082, allocations: 0 / 0.5241 GB, free: 25.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.724e-06/0.4082, allocations: 0 / 0.5241 GB, free: 25.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.493e-05/0.4083, allocations: 157.8 kB / 0.5243 GB, free: 24.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.4083, allocations: 1.875 kB / 0.5243 GB, free: 24.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.4083, allocations: 0 / 0.5243 GB, free: 24.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.82e-07/0.4083, allocations: 0 / 0.5243 GB, free: 24.82 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.39e-06/0.4083, allocations: 0 / 0.5243 GB, free: 24.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.4083, allocations: 2.938 kB / 0.5243 GB, free: 24.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.4083, allocations: 3.062 kB / 0.5243 GB, free: 24.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.999e-05/0.4084, allocations: 100.4 kB / 0.5244 GB, free: 24.72 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.315e-05/0.4084, allocations: 81.02 kB / 0.5244 GB, free: 24.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.147e-05/0.4084, allocations: 0 / 0.5244 GB, free: 24.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.729e-06/0.4084, allocations: 256 / 0.5244 GB, free: 24.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.578e-06/0.4084, allocations: 7.719 kB / 0.5244 GB, free: 24.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.4084, allocations: 0 / 0.5244 GB, free: 24.62 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.051e-05/0.4085, allocations: 75.28 kB / 0.5245 GB, free: 24.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4085, allocations: 0 / 0.5245 GB, free: 24.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.01604/0.4245, allocations: 3.781 MB / 0.5282 GB, free: 21.28 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.03585/0.4604, allocations: 1.496 MB / 0.5297 GB, free: 19.87 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001268/0.4605, allocations: 66.3 kB / 0.5297 GB, free: 19.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/0.4606, allocations: 0 / 0.5297 GB, free: 19.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.849e-05/0.4606, allocations: 51.41 kB / 0.5298 GB, free: 19.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001428/0.4607, allocations: 6.344 kB / 0.5298 GB, free: 19.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.012/0.4727, allocations: 342 kB / 0.5301 GB, free: 19.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.31e-05/0.4729, allocations: 0.669 MB / 0.5308 GB, free: 18.67 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 6.853e-06/0.4729, allocations: 0 / 0.5308 GB, free: 18.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.36e-05/0.4729, allocations: 11.44 kB / 0.5308 GB, free: 18.66 MB / 382.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4729, allocations: 0 / 0.5308 GB, free: 18.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1879/0.6609, allocations: 113.8 MB / 0.6419 GB, free: 0.7422 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.78/16.44, allocations: 8.062 kB / 0.6419 GB, free: 0.7344 MB / 478.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices2_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices2.pipe 2>&1)