Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices.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.TestMatrices,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001235/0.001235, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001297/0.001298, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 227.4 MB / 246.8 MB, free: 10.53 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.2298/0.2298, 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.002201/0.002201, allocations: 80.8 kB / 417.7 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1162, allocations: 62.45 MB / 480.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.001846/0.1181, allocations: 495.7 kB / 480.7 MB, free: 4.648 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002564/0.1207, allocations: 1.603 MB / 482.3 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.394e-05/0.1207, allocations: 3.938 kB / 482.3 MB, free: 3.027 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.306e-05/0.1208, allocations: 3.938 kB / 482.3 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.643e-06/0.1208, allocations: 0 / 482.3 MB, free: 3.023 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.001012/0.1218, allocations: 278.7 kB / 482.6 MB, free: 2.754 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.721e-05/0.1219, allocations: 4 kB / 482.6 MB, free: 2.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.458e-05/0.122, allocations: 0 / 482.6 MB, free: 2.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.871e-05/0.122, allocations: 0 / 482.6 MB, free: 2.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.99e-05/0.122, allocations: 7.984 kB / 482.6 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.963e-06/0.122, allocations: 0 / 482.6 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008211/0.1229, allocations: 499 kB / 483.1 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.714e-06/0.1229, allocations: 0 / 483.1 MB, free: 2.254 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.076e-05/0.1229, allocations: 4 kB / 483.1 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004557/0.1234, allocations: 303.4 kB / 483.4 MB, free: 1.953 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.746e-06/0.1234, allocations: 0 / 483.4 MB, free: 1.953 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1234, allocations: 3.938 kB / 483.4 MB, free: 1.949 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.1234, allocations: 0 / 483.4 MB, free: 1.949 MB / 350.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.0004715/0.1239, allocations: 375.5 kB / 483.7 MB, free: 1.531 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.1239, allocations: 15.97 kB / 483.8 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.626e-05/0.124, allocations: 34.75 kB / 483.8 MB, free: 1.473 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.017e-05/0.124, allocations: 4.938 kB / 483.8 MB, free: 1.469 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001372/0.1242, allocations: 160.4 kB / 483.9 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.1242, allocations: 384 / 483.9 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.259e-05/0.1242, allocations: 4.359 kB / 484 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001257/0.1243, allocations: 33.83 kB / 484 MB, free: 1.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.1244, allocations: 3.938 kB / 484 MB, free: 1.227 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-06/0.1244, allocations: 0 / 484 MB, free: 1.227 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.1244, allocations: 0 / 484 MB, free: 1.227 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.029e-05/0.1244, allocations: 4 kB / 484 MB, free: 1.223 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001733/0.1246, allocations: 149.7 kB / 484.1 MB, free: 1.027 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.907e-05/0.1246, allocations: 18.56 kB / 484.2 MB, free: 1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.666e-05/0.1247, allocations: 4.859 kB / 484.2 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.143e-06/0.1247, allocations: 4.094 kB / 484.2 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.556e-05/0.1247, allocations: 60.2 kB / 484.2 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.302e-05/0.1248, allocations: 4 kB / 484.2 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001815/0.1249, allocations: 67.34 kB / 484.3 MB, free: 0.832 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.792e-05/0.125, allocations: 81.09 kB / 484.4 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.955e-05/0.1251, allocations: 89.86 kB / 484.5 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.452e-05/0.1251, allocations: 25.7 kB / 484.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.024e-05/0.1252, allocations: 80.14 kB / 484.6 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.138e-05/0.1252, allocations: 3.906 kB / 484.6 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.978e-05/0.1252, allocations: 13.72 kB / 484.6 MB, free: 0.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.1254, allocations: 319 kB / 484.9 MB, free: 184 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.048e-05/0.1254, allocations: 0 / 484.9 MB, free: 184 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.017e-05/0.1254, allocations: 4 kB / 484.9 MB, free: 180 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.891e-05/0.1255, allocations: 68.14 kB / 485 MB, free: 96 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1255, allocations: 0 / 485 MB, free: 96 kB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.289e-05/0.1256, allocations: 59.39 kB / 485 MB, free: 24 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.467e-05/0.1257, allocations: 41.64 kB / 485.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.1257, allocations: 0 / 485.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.1257, allocations: 4.094 kB / 485.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.42e-07/0.1257, allocations: 0 / 485.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.1258, allocations: 0 / 485.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.84e-05/0.1258, allocations: 0 / 485.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.918e-06/0.1258, allocations: 4 kB / 485.1 MB, free: 15.97 MB / 366.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.0001228/0.1259, allocations: 135.5 kB / 485.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.159e-05/0.1259, allocations: 3.938 kB / 485.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.024e-05/0.126, allocations: 3.125 kB / 485.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.126, allocations: 4 kB / 485.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.126, allocations: 4 kB / 485.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.126, allocations: 3.938 kB / 485.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001323/0.1261, allocations: 149.9 kB / 485.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1261, allocations: 0 / 485.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.152e-06/0.1261, allocations: 0 / 485.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.779e-05/0.1262, allocations: 7.922 kB / 485.4 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.973e-06/0.1262, allocations: 7.938 kB / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.1262, allocations: 4 kB / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1262, allocations: 0 / 485.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000117/0.1263, allocations: 94.83 kB / 485.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.729e-05/0.1264, allocations: 81.05 kB / 485.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.397e-05/0.1264, allocations: 0 / 485.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.388e-06/0.1264, allocations: 0 / 485.6 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.407e-05/0.1264, allocations: 4 kB / 485.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.793e-06/0.1264, allocations: 4 kB / 485.6 MB, free: 15.37 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.7e-05/0.1265, allocations: 75.28 kB / 485.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1265, allocations: 0 / 485.6 MB, free: 15.29 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003589/0.1269, allocations: 63.98 kB / 485.7 MB, free: 15.23 MB / 366.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.001181/0.1281, allocations: 0.7236 MB / 486.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001437/0.1282, allocations: 63.39 kB / 486.5 MB, free: 14.4 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1282, allocations: 0 / 486.5 MB, free: 14.4 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.074e-05/0.1283, allocations: 51.41 kB / 486.5 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00014/0.1284, allocations: 8.062 kB / 486.5 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004315/0.1289, allocations: 134.6 kB / 486.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003265/0.1292, allocations: 0.6728 MB / 487.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.992e-06/0.1292, allocations: 0 / 487.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.415e-05/0.1293, allocations: 11.44 kB / 487.4 MB, free: 13.45 MB / 366.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1293, allocations: 0 / 487.4 MB, free: 13.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02278/0.152, allocations: 2.081 MB / 489.4 MB, free: 11.41 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.94/8.092, allocations: 14.5 kB / 489.5 MB, free: 11.4 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices.pipe 2>&1)