Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.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.TestMatrices,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestMatrices,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices",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.001066/0.001066, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001103/0.001103, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.358/1.358, allocations: 222.9 MB / 242.2 MB, free: 15.21 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.2087/0.2087, allocations: 44.18 MB / 336.6 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 64.58 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1199, allocations: 60.82 MB / 469.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestMatrices): time 0.002442/0.1224, allocations: 491.7 kB / 469.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002617/0.1251, allocations: 1.563 MB / 471.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.717e-05/0.1251, allocations: 0 / 471.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.529e-05/0.1252, allocations: 0 / 471.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.769e-06/0.1252, allocations: 0 / 471.4 MB, free: 12.23 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.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.0009392/0.1261, allocations: 267.3 kB / 471.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.821e-05/0.1262, allocations: 7.938 kB / 471.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.616e-05/0.1263, allocations: 0 / 471.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.769e-05/0.1263, allocations: 8 kB / 471.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.045e-05/0.1263, allocations: 0 / 471.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.601e-06/0.1263, allocations: 0 / 471.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006648/0.127, allocations: 491 kB / 472.1 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.822e-06/0.127, allocations: 0 / 472.1 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.799e-05/0.127, allocations: 4 kB / 472.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000429/0.1275, allocations: 307.4 kB / 472.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.1275, allocations: 0 / 472.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1275, allocations: 0 / 472.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.77e-06/0.1275, allocations: 0 / 472.5 MB, free: 11.16 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.0003652/0.1279, allocations: 381.2 kB / 472.8 MB, free: 10.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.1279, allocations: 8.031 kB / 472.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.775e-05/0.128, allocations: 30.75 kB / 472.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.338e-05/0.128, allocations: 0.9375 kB / 472.9 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.364e-05/0.1281, allocations: 160.4 kB / 473 MB, free: 10.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.128e-05/0.1281, allocations: 4.375 kB / 473 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.416e-06/0.1281, allocations: 8.312 kB / 473 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.444e-05/0.1282, allocations: 41.8 kB / 473.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.1282, allocations: 7.938 kB / 473.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.224e-06/0.1282, allocations: 0 / 473.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.1282, allocations: 0 / 473.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.693e-05/0.1283, allocations: 0 / 473.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001089/0.1284, allocations: 141.7 kB / 473.2 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.905e-05/0.1284, allocations: 22.61 kB / 473.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.709e-05/0.1285, allocations: 12.78 kB / 473.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.973e-06/0.1285, allocations: 0 / 473.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.987e-05/0.1285, allocations: 68.27 kB / 473.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.1285, allocations: 0 / 473.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001643/0.1287, allocations: 59.41 kB / 473.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.352e-05/0.1287, allocations: 77.11 kB / 473.5 MB, free: 9.949 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.485e-05/0.1288, allocations: 93.84 kB / 473.5 MB, free: 9.848 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.163e-05/0.1288, allocations: 29.83 kB / 473.6 MB, free: 9.812 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.074e-05/0.1288, allocations: 80.14 kB / 473.7 MB, free: 9.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.919e-05/0.1289, allocations: 3.906 kB / 473.7 MB, free: 9.727 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.854e-05/0.1289, allocations: 17.72 kB / 473.7 MB, free: 9.703 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.988e-05/0.129, allocations: 310.8 kB / 474 MB, free: 9.391 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.028e-05/0.129, allocations: 3.938 kB / 474 MB, free: 9.387 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.393e-06/0.129, allocations: 4 kB / 474 MB, free: 9.383 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.412e-05/0.1291, allocations: 60.33 kB / 474 MB, free: 9.309 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1291, allocations: 0 / 474 MB, free: 9.309 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.125e-05/0.1291, allocations: 67.39 kB / 474.1 MB, free: 9.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.681e-05/0.1292, allocations: 36.45 kB / 474.1 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.1292, allocations: 4 kB / 474.1 MB, free: 9.188 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.148e-05/0.1292, allocations: 0 / 474.1 MB, free: 9.188 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.254e-06/0.1292, allocations: 0 / 474.1 MB, free: 9.188 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.1292, allocations: 3.938 kB / 474.2 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.543e-05/0.1293, allocations: 0 / 474.2 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.1293, allocations: 0 / 474.2 MB, free: 9.184 MB / 350.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 7.523e-05/0.1293, allocations: 147.5 kB / 474.3 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.728e-06/0.1294, allocations: 3.938 kB / 474.3 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.967e-06/0.1294, allocations: 3.125 kB / 474.3 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.1294, allocations: 0 / 474.3 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1294, allocations: 0 / 474.3 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.1294, allocations: 4 kB / 474.3 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.357e-05/0.1295, allocations: 150 kB / 474.5 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.1295, allocations: 3.984 kB / 474.5 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.61e-07/0.1295, allocations: 0 / 474.5 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.1295, allocations: 7.938 kB / 474.5 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.264e-06/0.1295, allocations: 4 kB / 474.5 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1295, allocations: 4 kB / 474.5 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1295, allocations: 3.938 kB / 474.5 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.455e-05/0.1296, allocations: 86.83 kB / 474.6 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.649e-05/0.1297, allocations: 85.05 kB / 474.6 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.104e-05/0.1297, allocations: 0 / 474.6 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.948e-06/0.1297, allocations: 0 / 474.6 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.03e-05/0.1297, allocations: 4.031 kB / 474.7 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-06/0.1297, allocations: 0 / 474.7 MB, free: 8.578 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.387e-05/0.1298, allocations: 79.22 kB / 474.7 MB, free: 8.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1298, allocations: 4 kB / 474.7 MB, free: 8.496 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00031/0.1301, allocations: 59.98 kB / 474.8 MB, free: 8.438 MB / 350.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.0006499/0.1307, allocations: 0.7215 MB / 475.5 MB, free: 7.688 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.057e-05/0.1308, allocations: 55.41 kB / 475.6 MB, free: 7.621 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1309, allocations: 0 / 475.6 MB, free: 7.621 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.515e-05/0.1309, allocations: 63.33 kB / 475.6 MB, free: 7.547 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001246/0.131, allocations: 4 kB / 475.6 MB, free: 7.543 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003111/0.1313, allocations: 130.5 kB / 475.8 MB, free: 7.375 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001961/0.1315, allocations: 0.669 MB / 476.4 MB, free: 6.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.971e-06/0.1316, allocations: 0 / 476.4 MB, free: 6.68 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.336e-05/0.1316, allocations: 11.56 kB / 476.4 MB, free: 6.668 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1316, allocations: 4 kB / 476.4 MB, free: 6.664 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01845/0.15, allocations: 2.081 MB / 478.5 MB, free: 4.633 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.123/9.273, allocations: 5.094 kB / 478.5 MB, free: 4.629 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestMatrices.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestMatrices.pipe 2>&1)