Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Utilities.Examples.ReadRealMatrixFromFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.ReadRealMatrixFromFile,fileNamePrefix="Modelica_3_2_3_Modelica_Utilities_Examples_ReadRealMatrixFromFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.ReadRealMatrixFromFile,fileNamePrefix="Modelica_3_2_3_Modelica_Utilities_Examples_ReadRealMatrixFromFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001005/0.001005, allocations: 171.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.539/1.539, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008972/0.0008972, allocations: 94.03 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.133e-05/3.157e-05, allocations: 0 / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09666/0.09672, allocations: 47.58 MB / 370.1 MB, free: 1.629 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3408/0.4376, allocations: 75.31 MB / 445.4 MB, free: 1.969 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002199/0.4378, allocations: 69.03 kB / 445.5 MB, free: 1.934 MB / 314.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:212:5-212:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:213:5-213:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:212:5-212:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:213:5-213:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:212:5-212:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:213:5-213:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:212:5-212:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Streams.mo:213:5-213:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. Notification: Performance of FrontEnd - DAE generated: time 0.009758/0.4476, allocations: 3.457 MB / 448.9 MB, free: 15.25 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4476, allocations: 0 / 448.9 MB, free: 15.25 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.4477, allocations: 0 / 448.9 MB, free: 15.25 MB / 330.7 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.0004641/0.4481, allocations: 394.2 kB / 449.3 MB, free: 14.82 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.817e-05/0.4482, allocations: 8.031 kB / 449.3 MB, free: 14.81 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.651e-05/0.4482, allocations: 38.5 kB / 449.4 MB, free: 14.77 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.573e-05/0.4483, allocations: 8.781 kB / 449.4 MB, free: 14.76 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004705/0.4488, allocations: 224.6 kB / 449.6 MB, free: 14.51 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.4488, allocations: 7.953 kB / 449.6 MB, free: 14.5 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.124e-05/0.4488, allocations: 0 / 449.6 MB, free: 14.5 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001529/0.449, allocations: 73.92 kB / 449.7 MB, free: 14.41 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.449, allocations: 3.938 kB / 449.7 MB, free: 14.41 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.461e-05/0.449, allocations: 0 / 449.7 MB, free: 14.41 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.4491, allocations: 0 / 449.7 MB, free: 14.41 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.338e-05/0.4491, allocations: 4 kB / 449.7 MB, free: 14.41 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003513/0.4494, allocations: 185.3 kB / 449.9 MB, free: 14.18 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.087e-05/0.4495, allocations: 30.52 kB / 449.9 MB, free: 14.14 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.627e-05/0.4496, allocations: 8.859 kB / 449.9 MB, free: 14.13 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.174e-06/0.4496, allocations: 0 / 449.9 MB, free: 14.13 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.171e-05/0.4496, allocations: 60.33 kB / 450 MB, free: 14.06 MB / 330.7 MB Notification: Performance of pre-optimization done (n=1): time 3.556e-06/0.4496, allocations: 3.938 kB / 450 MB, free: 14.05 MB / 330.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001417/0.4498, allocations: 41.27 kB / 450 MB, free: 14.01 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.425e-05/0.4499, allocations: 162.2 kB / 450.2 MB, free: 13.82 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001644/0.45, allocations: 155.7 kB / 450.3 MB, free: 13.67 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.742e-05/0.4501, allocations: 33.73 kB / 450.4 MB, free: 13.63 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.069e-05/0.4501, allocations: 91.89 kB / 450.4 MB, free: 13.55 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.377e-05/0.4502, allocations: 3.906 kB / 450.4 MB, free: 13.54 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.755e-06/0.4502, allocations: 3.938 kB / 450.5 MB, free: 13.54 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.4503, allocations: 318.5 kB / 450.8 MB, free: 13.22 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.292e-05/0.4503, allocations: 4 kB / 450.8 MB, free: 13.22 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.157e-05/0.4504, allocations: 44.28 kB / 450.8 MB, free: 13.16 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.307e-05/0.4504, allocations: 11.88 kB / 450.8 MB, free: 13.15 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.4504, allocations: 0 / 450.8 MB, free: 13.15 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.527e-05/0.4505, allocations: 49.55 kB / 450.9 MB, free: 13.1 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.4505, allocations: 8 kB / 450.9 MB, free: 13.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.343e-06/0.4506, allocations: 0 / 450.9 MB, free: 13.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.4506, allocations: 0 / 450.9 MB, free: 13.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.139e-05/0.4506, allocations: 4 kB / 450.9 MB, free: 13.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.4506, allocations: 4.094 kB / 450.9 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.836e-05/0.4507, allocations: 4 kB / 450.9 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-06/0.4507, allocations: 3.625 kB / 450.9 MB, free: 13.08 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.792e-05/0.4508, allocations: 105 kB / 451 MB, free: 12.97 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.193e-05/0.4508, allocations: 11.86 kB / 451 MB, free: 12.96 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.843e-05/0.4509, allocations: 15.59 kB / 451 MB, free: 12.94 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.4509, allocations: 0 / 451 MB, free: 12.94 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.4509, allocations: 0 / 451 MB, free: 12.94 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.4509, allocations: 3.938 kB / 451 MB, free: 12.93 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000252/0.4512, allocations: 185.3 kB / 451.2 MB, free: 12.71 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.4512, allocations: 0 / 451.2 MB, free: 12.71 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.974e-05/0.4512, allocations: 0 / 451.2 MB, free: 12.71 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.091e-06/0.4513, allocations: 7.953 kB / 451.2 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.4513, allocations: 0 / 451.2 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.4513, allocations: 0 / 451.2 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4513, allocations: 0 / 451.2 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000166/0.4515, allocations: 72.84 kB / 451.3 MB, free: 12.62 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/0.4516, allocations: 105 kB / 451.4 MB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.116e-05/0.4516, allocations: 3.953 kB / 451.4 MB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.383e-05/0.4517, allocations: 7.938 kB / 451.4 MB, free: 12.49 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.173e-05/0.4517, allocations: 4.031 kB / 451.4 MB, free: 12.48 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-06/0.4517, allocations: 0 / 451.4 MB, free: 12.48 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001197/0.4519, allocations: 134.6 kB / 451.5 MB, free: 12.37 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.4519, allocations: 0 / 451.5 MB, free: 12.37 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002059/0.4521, allocations: 27.92 kB / 451.6 MB, free: 12.34 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006557/0.4527, allocations: 0.6918 MB / 452.3 MB, free: 11.63 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 9.032e-05/0.4528, allocations: 8 kB / 452.3 MB, free: 11.62 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.4529, allocations: 4 kB / 452.3 MB, free: 11.62 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.091e-05/0.4529, allocations: 3.938 kB / 452.3 MB, free: 11.62 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001136/0.453, allocations: 7.875 kB / 452.3 MB, free: 11.61 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004432/0.4534, allocations: 155.2 kB / 452.4 MB, free: 11.43 MB / 330.7 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:744:5-744:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]