Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.ReadRealMatrixFromFile,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_ReadRealMatrixFromFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.ReadRealMatrixFromFile,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_ReadRealMatrixFromFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 175.7 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.526/1.526, allocations: 221.5 MB / 230.3 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007907/0.0007907, allocations: 88.81 kB / 281.2 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.109e-05/2.108e-05, allocations: 4 kB / 337.1 MB, free: 9.961 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1081, allocations: 50.42 MB / 387.5 MB, free: 7.504 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3177/0.4259, allocations: 75.56 MB / 463.1 MB, free: 3.18 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002062/0.4262, allocations: 67.97 kB / 463.2 MB, free: 3.113 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Streams.mo:207:5-207:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Streams.mo:208:5-208:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Streams.mo:207:5-207:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Streams.mo:208:5-208:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Streams.mo:207:5-207:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Streams.mo:208:5-208:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Streams.mo:207:5-207:61:writable] Warning: Unused input variable nrow in function .Modelica.Utilities.Streams.readRealMatrix. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Streams.mo:208:5-208:64:writable] Warning: Unused input variable ncol in function .Modelica.Utilities.Streams.readRealMatrix. Notification: Performance of FrontEnd - DAE generated: time 0.009349/0.4355, allocations: 3.293 MB / 466.5 MB, free: 15.84 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4356, allocations: 0 / 466.5 MB, free: 15.84 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.4356, allocations: 3.938 kB / 466.5 MB, free: 15.84 MB / 346.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.0003259/0.4359, allocations: 387 kB / 466.8 MB, free: 15.41 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.4359, allocations: 8.031 kB / 466.9 MB, free: 15.4 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.649e-05/0.436, allocations: 19.84 kB / 466.9 MB, free: 15.38 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003374/0.4363, allocations: 223 kB / 467.1 MB, free: 15.12 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.4364, allocations: 0 / 467.1 MB, free: 15.12 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.624e-05/0.4364, allocations: 0 / 467.1 MB, free: 15.12 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 2.948e-05/0.4364, allocations: 4 kB / 467.1 MB, free: 15.12 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001022/0.4365, allocations: 65.92 kB / 467.2 MB, free: 15.04 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.786e-06/0.4366, allocations: 7.953 kB / 467.2 MB, free: 15.03 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.4366, allocations: 0 / 467.2 MB, free: 15.03 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.431e-06/0.4366, allocations: 7.984 kB / 467.2 MB, free: 15.02 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00032/0.4369, allocations: 166.1 kB / 467.3 MB, free: 14.82 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.406e-05/0.437, allocations: 14.58 kB / 467.3 MB, free: 14.8 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.898e-05/0.437, allocations: 12.86 kB / 467.4 MB, free: 14.78 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.967e-06/0.437, allocations: 0 / 467.4 MB, free: 14.78 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.352e-05/0.4371, allocations: 56.27 kB / 467.4 MB, free: 14.71 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 8.22e-07/0.4371, allocations: 8 kB / 467.4 MB, free: 14.7 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001352/0.4372, allocations: 45.62 kB / 467.5 MB, free: 14.65 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.256e-05/0.4373, allocations: 154.2 kB / 467.6 MB, free: 14.46 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001616/0.4375, allocations: 155.3 kB / 467.8 MB, free: 14.3 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.4375, allocations: 25.7 kB / 467.8 MB, free: 14.27 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.343e-05/0.4376, allocations: 96.12 kB / 467.9 MB, free: 14.18 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.336e-05/0.4376, allocations: 11.84 kB / 467.9 MB, free: 14.16 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.324e-06/0.4376, allocations: 0 / 467.9 MB, free: 14.16 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.4377, allocations: 322.9 kB / 468.2 MB, free: 13.84 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.17e-05/0.4377, allocations: 4 kB / 468.2 MB, free: 13.84 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.05e-05/0.4378, allocations: 36.3 kB / 468.3 MB, free: 13.79 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.879e-05/0.4378, allocations: 8.641 kB / 468.3 MB, free: 13.78 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.4378, allocations: 0 / 468.3 MB, free: 13.78 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.883e-05/0.4379, allocations: 49.55 kB / 468.3 MB, free: 13.72 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.157e-05/0.4379, allocations: 8.094 kB / 468.3 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.4379, allocations: 0 / 468.3 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.257e-06/0.4379, allocations: 0 / 468.3 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.768e-05/0.438, allocations: 4 kB / 468.3 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/0.438, allocations: 3.984 kB / 468.3 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.899e-05/0.4381, allocations: 7.953 kB / 468.3 MB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.541e-06/0.4381, allocations: 0 / 468.3 MB, free: 13.7 MB / 346.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 7.641e-05/0.4382, allocations: 105 kB / 468.4 MB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 5.922e-05/0.4382, allocations: 41.61 kB / 468.5 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.631e-05/0.4382, allocations: 15.92 kB / 468.5 MB, free: 13.53 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.347e-05/0.4383, allocations: 7.969 kB / 468.5 MB, free: 13.52 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.4383, allocations: 7.891 kB / 468.5 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.78e-06/0.4383, allocations: 3.938 kB / 468.5 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.4383, allocations: 7.938 kB / 468.5 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001628/0.4385, allocations: 150.2 kB / 468.7 MB, free: 13.31 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.4385, allocations: 0 / 468.7 MB, free: 13.31 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.482e-05/0.4385, allocations: 8 kB / 468.7 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.4385, allocations: 0 / 468.7 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-06/0.4385, allocations: 0 / 468.7 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.4386, allocations: 4.781 kB / 468.7 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.4386, allocations: 0 / 468.7 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001072/0.4387, allocations: 72.98 kB / 468.8 MB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.066e-05/0.4388, allocations: 97.11 kB / 468.8 MB, free: 13.1 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.475e-05/0.4388, allocations: 4 kB / 468.9 MB, free: 13.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.234e-05/0.4389, allocations: 4 kB / 468.9 MB, free: 13.09 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.888e-06/0.4389, allocations: 0 / 468.9 MB, free: 13.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.306e-06/0.4389, allocations: 8.094 kB / 468.9 MB, free: 13.08 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.512e-05/0.439, allocations: 131.2 kB / 469 MB, free: 12.95 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.439, allocations: 0 / 469 MB, free: 12.95 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002087/0.4392, allocations: 24 kB / 469 MB, free: 12.93 MB / 346.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.0006059/0.4398, allocations: 0.6848 MB / 469.7 MB, free: 12.24 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.853e-05/0.4399, allocations: 12 kB / 469.7 MB, free: 12.23 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.4399, allocations: 0 / 469.7 MB, free: 12.23 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.382e-06/0.4399, allocations: 0 / 469.7 MB, free: 12.23 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001123/0.4401, allocations: 8.641 kB / 469.7 MB, free: 12.22 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003784/0.4404, allocations: 159.4 kB / 469.9 MB, free: 12.03 MB / 346.7 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:637:5-637:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]