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.0009818/0.0009818, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.838/1.838, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001019/0.001019, allocations: 82.72 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.291e-05/2.303e-05, allocations: 8 kB / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1162, allocations: 47.58 MB / 363.2 MB, free: 6.988 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4015/0.5178, allocations: 74.9 MB / 438.1 MB, free: 4.457 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002364/0.5181, allocations: 63.59 kB / 438.1 MB, free: 4.426 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.009741/0.5278, allocations: 3.341 MB / 441.5 MB, free: 1.809 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.5279, allocations: 0 / 441.5 MB, free: 1.809 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.615e-06/0.5279, allocations: 0 / 441.5 MB, free: 1.809 MB / 314.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.0003974/0.5283, allocations: 388.6 kB / 441.8 MB, free: 1.383 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.5283, allocations: 8.031 kB / 441.8 MB, free: 1.375 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.177e-05/0.5284, allocations: 16.59 kB / 441.9 MB, free: 1.359 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004162/0.5288, allocations: 228.7 kB / 442.1 MB, free: 1.109 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.235e-05/0.5289, allocations: 3.953 kB / 442.1 MB, free: 1.105 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.375e-05/0.5289, allocations: 4 kB / 442.1 MB, free: 1.102 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.065e-05/0.5289, allocations: 7.984 kB / 442.1 MB, free: 1.094 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001068/0.529, allocations: 73.23 kB / 442.2 MB, free: 1.004 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.603e-06/0.5291, allocations: 4 kB / 442.2 MB, free: 1 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.5291, allocations: 0 / 442.2 MB, free: 1 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.5291, allocations: 3.938 kB / 442.2 MB, free: 0.9961 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003273/0.5294, allocations: 161.8 kB / 442.3 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.783e-05/0.5295, allocations: 22.45 kB / 442.4 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.806e-05/0.5295, allocations: 4.859 kB / 442.4 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.5296, allocations: 0 / 442.4 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.776e-05/0.5296, allocations: 72.22 kB / 442.4 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.5296, allocations: 0 / 442.4 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.000156/0.5298, allocations: 37.69 kB / 442.5 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.173e-05/0.5299, allocations: 154.2 kB / 442.6 MB, free: 464 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.5301, allocations: 158.6 kB / 442.8 MB, free: 312 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.903e-05/0.5301, allocations: 25.7 kB / 442.8 MB, free: 280 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.014e-05/0.5302, allocations: 94.2 kB / 442.9 MB, free: 192 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.017e-05/0.5302, allocations: 7.891 kB / 442.9 MB, free: 184 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.198e-06/0.5302, allocations: 4.031 kB / 442.9 MB, free: 180 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.5303, allocations: 322 kB / 443.2 MB, free: 15.86 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.175e-05/0.5304, allocations: 0 / 443.2 MB, free: 15.86 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.438e-05/0.5304, allocations: 44.16 kB / 443.3 MB, free: 15.8 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.154e-05/0.5304, allocations: 7.938 kB / 443.3 MB, free: 15.79 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.5304, allocations: 4.062 kB / 443.3 MB, free: 15.79 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.253e-05/0.5305, allocations: 45.59 kB / 443.3 MB, free: 15.74 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.5306, allocations: 7.953 kB / 443.3 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.5306, allocations: 0 / 443.3 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.5306, allocations: 0 / 443.3 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.002e-05/0.5306, allocations: 4 kB / 443.3 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.5306, allocations: 0 / 443.3 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.891e-05/0.5307, allocations: 4 kB / 443.3 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-06/0.5307, allocations: 0 / 443.3 MB, free: 15.72 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 0.0001104/0.5308, allocations: 113 kB / 443.4 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 6.225e-05/0.5309, allocations: 48.86 kB / 443.5 MB, free: 15.55 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.043e-05/0.5309, allocations: 11.86 kB / 443.5 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.932e-05/0.531, allocations: 15.91 kB / 443.5 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.531, allocations: 0 / 443.5 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.531, allocations: 0 / 443.5 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.531, allocations: 0 / 443.5 MB, free: 15.53 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000199/0.5312, allocations: 156.8 kB / 443.7 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.5312, allocations: 0 / 443.7 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.526e-05/0.5313, allocations: 0 / 443.7 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.5313, allocations: 7.984 kB / 443.7 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.5313, allocations: 0 / 443.7 MB, free: 15.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.5313, allocations: 4.781 kB / 443.7 MB, free: 15.33 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.5313, allocations: 3.984 kB / 443.7 MB, free: 15.33 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001316/0.5314, allocations: 64.8 kB / 443.8 MB, free: 15.25 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/0.5316, allocations: 104.4 kB / 443.9 MB, free: 15.13 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.638e-05/0.5316, allocations: 7.953 kB / 443.9 MB, free: 15.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.447e-05/0.5317, allocations: 12.02 kB / 443.9 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.62e-05/0.5317, allocations: 7.938 kB / 443.9 MB, free: 15.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.118e-06/0.5317, allocations: 4 kB / 443.9 MB, free: 15.1 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000105/0.5318, allocations: 125.4 kB / 444 MB, free: 14.99 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5318, allocations: 0 / 444 MB, free: 14.99 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000228/0.5321, allocations: 27.97 kB / 444 MB, free: 14.96 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.0007132/0.5328, allocations: 0.6724 MB / 444.7 MB, free: 14.27 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 9.026e-05/0.5329, allocations: 15.55 kB / 444.7 MB, free: 14.26 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.5329, allocations: 3.938 kB / 444.7 MB, free: 14.25 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.576e-06/0.5329, allocations: 7.938 kB / 444.7 MB, free: 14.25 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001138/0.533, allocations: 3.375 kB / 444.7 MB, free: 14.25 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004464/0.5335, allocations: 154.7 kB / 444.9 MB, free: 14.06 MB / 330.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]