Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices3.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.TestMatrices3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices3,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001628/0.001628, 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.001715/0.001715, 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.451/1.451, allocations: 227.4 MB / 246.8 MB, free: 10.54 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.2342/0.2342, 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.00227/0.002271, allocations: 82.47 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1303, allocations: 62.46 MB / 480.2 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices3): time 0.001724/0.1321, allocations: 483.8 kB / 480.7 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002205/0.1343, allocations: 1.571 MB / 482.3 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.766e-05/0.1343, allocations: 0 / 482.3 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.17e-05/0.1344, allocations: 0 / 482.3 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.689e-06/0.1344, allocations: 0 / 482.3 MB, free: 3.055 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Math.mo:576:3-610:16:writable] Warning: Pure function 'ModelicaTest.Math.Matrices3' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0008744/0.1352, allocations: 226.8 kB / 482.5 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.882e-05/0.1353, allocations: 4 kB / 482.5 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.783e-05/0.1353, allocations: 3.984 kB / 482.5 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.772e-05/0.1354, allocations: 4 kB / 482.5 MB, free: 2.824 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.909e-05/0.1354, allocations: 7.922 kB / 482.5 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.891e-06/0.1354, allocations: 0 / 482.5 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001043/0.1365, allocations: 0.6947 MB / 483.2 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.028e-05/0.1365, allocations: 0 / 483.2 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.119e-05/0.1365, allocations: 15.92 kB / 483.2 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007862/0.1373, allocations: 0.6435 MB / 483.8 MB, free: 1.461 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1373, allocations: 0 / 483.8 MB, free: 1.461 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1373, allocations: 0 / 483.8 MB, free: 1.461 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.1373, allocations: 0 / 483.8 MB, free: 1.461 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.0004956/0.1378, allocations: 365.3 kB / 484.2 MB, free: 1.051 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.1379, allocations: 8.031 kB / 484.2 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.241e-05/0.1379, allocations: 30.75 kB / 484.2 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.107e-05/0.138, allocations: 8.922 kB / 484.2 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001247/0.1381, allocations: 164.4 kB / 484.4 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/0.1381, allocations: 8.312 kB / 484.4 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.216e-05/0.1381, allocations: 4.312 kB / 484.4 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001012/0.1382, allocations: 33.83 kB / 484.5 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.1382, allocations: 0 / 484.5 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.804e-06/0.1383, allocations: 0 / 484.5 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-06/0.1383, allocations: 0 / 484.5 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.709e-05/0.1383, allocations: 0 / 484.5 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000159/0.1385, allocations: 145.7 kB / 484.6 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.701e-05/0.1385, allocations: 26.61 kB / 484.6 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.807e-05/0.1385, allocations: 8.797 kB / 484.6 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.494e-06/0.1386, allocations: 0 / 484.6 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.452e-05/0.1386, allocations: 64.27 kB / 484.7 MB, free: 440 kB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.1386, allocations: 0 / 484.7 MB, free: 440 kB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001852/0.1388, allocations: 67.33 kB / 484.8 MB, free: 360 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.055e-05/0.1389, allocations: 81.11 kB / 484.8 MB, free: 260 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.954e-05/0.1389, allocations: 93.98 kB / 484.9 MB, free: 156 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/0.139, allocations: 25.7 kB / 485 MB, free: 124 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.265e-05/0.139, allocations: 80.14 kB / 485 MB, free: 40 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.647e-05/0.1391, allocations: 0 / 485 MB, free: 40 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.281e-05/0.1391, allocations: 13.72 kB / 485 MB, free: 20 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.1392, allocations: 310.8 kB / 485.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.292e-05/0.1393, allocations: 3.938 kB / 485.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.404e-06/0.1393, allocations: 3.984 kB / 485.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.332e-05/0.1394, allocations: 68.33 kB / 485.4 MB, free: 15.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1394, allocations: 0 / 485.4 MB, free: 15.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.254e-05/0.1394, allocations: 59.41 kB / 485.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.669e-05/0.1395, allocations: 33.64 kB / 485.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.1395, allocations: 3.984 kB / 485.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.1395, allocations: 4 kB / 485.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.01e-07/0.1395, allocations: 0 / 485.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.1395, allocations: 0 / 485.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.578e-05/0.1396, allocations: 0 / 485.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-06/0.1396, allocations: 32 / 485.5 MB, free: 15.5 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.0001078/0.1397, allocations: 143.5 kB / 485.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.21e-05/0.1397, allocations: 7.938 kB / 485.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.092e-05/0.1397, allocations: 3.125 kB / 485.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.1397, allocations: 3.938 kB / 485.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.1397, allocations: 0 / 485.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.1397, allocations: 0 / 485.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000117/0.1399, allocations: 153.6 kB / 485.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1399, allocations: 0 / 485.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.01e-07/0.1399, allocations: 0 / 485.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.1399, allocations: 7.938 kB / 485.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.1399, allocations: 0 / 485.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1399, allocations: 0 / 485.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.86e-06/0.1399, allocations: 8 kB / 485.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001095/0.14, allocations: 86.83 kB / 485.9 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.098e-05/0.1401, allocations: 81.05 kB / 486 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.553e-05/0.1401, allocations: 4 kB / 486 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.034e-05/0.1401, allocations: 4.031 kB / 486 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.838e-05/0.1401, allocations: 3.984 kB / 486 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.388e-06/0.1402, allocations: 3.984 kB / 486 MB, free: 14.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.974e-05/0.1402, allocations: 79.22 kB / 486.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1402, allocations: 0 / 486.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004102/0.1406, allocations: 120.3 kB / 486.2 MB, free: 14.7 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.001039/0.1417, allocations: 0.7021 MB / 486.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001017/0.1418, allocations: 67.42 kB / 487 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1418, allocations: 0 / 487 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.188e-05/0.1418, allocations: 59.34 kB / 487 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001232/0.142, allocations: 3.094 kB / 487 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003806/0.1423, allocations: 130.6 kB / 487.2 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003122/0.1427, allocations: 0.6729 MB / 487.8 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.042e-06/0.1427, allocations: 0 / 487.8 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.43e-05/0.1427, allocations: 7.438 kB / 487.9 MB, free: 12.94 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1427, allocations: 128 / 487.9 MB, free: 12.94 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02788/0.1706, allocations: 4.69 MB / 492.5 MB, free: 8.293 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.07/8.24, allocations: 14.8 kB / 492.6 MB, free: 8.285 MB / 366.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices3.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices3.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices3.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices3_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices3_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_TestMatrices3.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.TestMatrices3.pipe 2>&1)