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.0009965/0.0009963, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.412/1.412, allocations: 205.4 MB / 223.1 MB, free: 9.133 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.000773/0.000773, allocations: 92.05 kB / 271.5 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003597/0.0003597, allocations: 12 kB / 328.3 MB, free: 15.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.2549, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0981/0.3531, allocations: 75.41 MB / 451.3 MB, free: 5.254 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001888/0.3533, allocations: 71.95 kB / 451.4 MB, free: 5.184 MB / 330.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.01013/0.3635, allocations: 3.642 MB / 455 MB, free: 1.539 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3635, allocations: 4 kB / 455 MB, free: 1.535 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.3635, allocations: 0 / 455 MB, free: 1.535 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.0004143/0.3639, allocations: 412.8 kB / 455.4 MB, free: 1.078 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.364, allocations: 8.031 kB / 455.4 MB, free: 1.07 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.41e-05/0.364, allocations: 30.56 kB / 455.5 MB, free: 1.031 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.572e-05/0.3641, allocations: 7.906 kB / 455.5 MB, free: 1.023 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003708/0.3644, allocations: 246.8 kB / 455.7 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.527e-06/0.3645, allocations: 3.953 kB / 455.7 MB, free: 0.7383 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.39e-05/0.3645, allocations: 0 / 455.7 MB, free: 0.7383 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001235/0.3646, allocations: 77.91 kB / 455.8 MB, free: 0.6406 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-06/0.3646, allocations: 0 / 455.8 MB, free: 0.6406 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.3646, allocations: 0 / 455.8 MB, free: 0.6406 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.447e-06/0.3646, allocations: 4 kB / 455.8 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.514e-05/0.3647, allocations: 4 kB / 455.8 MB, free: 0.6328 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003207/0.365, allocations: 181.7 kB / 456 MB, free: 416 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.943e-05/0.365, allocations: 26.47 kB / 456 MB, free: 380 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.885e-06/0.3651, allocations: 0 / 456 MB, free: 380 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.41e-05/0.3651, allocations: 60.27 kB / 456.1 MB, free: 304 kB / 330.7 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.3651, allocations: 0 / 456.1 MB, free: 304 kB / 330.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001307/0.3652, allocations: 49.66 kB / 456.1 MB, free: 248 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.396e-05/0.3653, allocations: 158.2 kB / 456.3 MB, free: 52 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001765/0.3655, allocations: 161.9 kB / 456.4 MB, free: 15.89 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.3656, allocations: 25.7 kB / 456.4 MB, free: 15.86 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.878e-05/0.3656, allocations: 96.12 kB / 456.5 MB, free: 15.76 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.195e-05/0.3656, allocations: 11.84 kB / 456.5 MB, free: 15.75 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.264e-06/0.3657, allocations: 0 / 456.5 MB, free: 15.75 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.3658, allocations: 318.8 kB / 456.9 MB, free: 15.43 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.503e-05/0.3658, allocations: 8.125 kB / 456.9 MB, free: 15.42 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.421e-05/0.3659, allocations: 44.22 kB / 456.9 MB, free: 15.36 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.061e-05/0.3659, allocations: 4 kB / 456.9 MB, free: 15.36 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.3659, allocations: 0 / 456.9 MB, free: 15.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.339e-05/0.366, allocations: 57.58 kB / 457 MB, free: 15.29 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.366, allocations: 8.094 kB / 457 MB, free: 15.29 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.928e-06/0.366, allocations: 0 / 457 MB, free: 15.29 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/0.366, allocations: 0 / 457 MB, free: 15.29 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.842e-05/0.3661, allocations: 4 kB / 457 MB, free: 15.28 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.3661, allocations: 0 / 457 MB, free: 15.28 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.054e-05/0.3662, allocations: 7.906 kB / 457 MB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.2e-06/0.3662, allocations: 0 / 457 MB, free: 15.27 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 () * Number of clocked 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 9.568e-05/0.3663, allocations: 121.8 kB / 457.1 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.208e-05/0.3663, allocations: 11.86 kB / 457.1 MB, free: 15.13 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.891e-05/0.3663, allocations: 15.83 kB / 457.1 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.3664, allocations: 4.031 kB / 457.1 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.3664, allocations: 0 / 457.1 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.3664, allocations: 0 / 457.1 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001899/0.3666, allocations: 177.6 kB / 457.3 MB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.3666, allocations: 0 / 457.3 MB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.726e-05/0.3666, allocations: 4 kB / 457.3 MB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.3666, allocations: 7.891 kB / 457.3 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-06/0.3666, allocations: 0 / 457.3 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.3666, allocations: 0 / 457.3 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3667, allocations: 0 / 457.3 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001392/0.3668, allocations: 81.06 kB / 457.4 MB, free: 14.79 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.083e-05/0.3669, allocations: 101 kB / 457.5 MB, free: 14.67 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.62e-05/0.3669, allocations: 3.953 kB / 457.5 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.46e-05/0.367, allocations: 4 kB / 457.5 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.224e-05/0.367, allocations: 0 / 457.5 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.562e-06/0.367, allocations: 4 kB / 457.5 MB, free: 14.66 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001283/0.3672, allocations: 135.3 kB / 457.6 MB, free: 14.52 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3672, allocations: 4 kB / 457.7 MB, free: 14.52 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000235/0.3674, allocations: 24 kB / 457.7 MB, free: 14.5 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 () * Number of clocked 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.0006955/0.3681, allocations: 0.6881 MB / 458.4 MB, free: 13.81 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001016/0.3682, allocations: 15.98 kB / 458.4 MB, free: 13.79 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.3682, allocations: 0 / 458.4 MB, free: 13.79 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.149e-05/0.3683, allocations: 4 kB / 458.4 MB, free: 13.79 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001134/0.3684, allocations: 15.09 kB / 458.4 MB, free: 13.78 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008737/0.3693, allocations: 0.5766 MB / 459 MB, free: 13.15 MB / 346.7 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:748:5-748:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]