Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Utilities_Examples_ReadRealMatrixFromFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.ReadRealMatrixFromFile,fileNamePrefix="Modelica_3_2_3_cpp_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.001587/0.001586, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.106/2.106, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001124/0.001124, allocations: 92.73 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.299e-05/2.304e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3702/0.3702, allocations: 47.56 MB / 362.4 MB, free: 45.71 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.126/0.4963, allocations: 74.66 MB / 437.1 MB, free: 11.55 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002663/0.4966, allocations: 66.94 kB / 437.1 MB, free: 11.49 MB / 331.1 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.01607/0.5127, allocations: 3.345 MB / 440.5 MB, free: 8.168 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.5128, allocations: 0 / 440.5 MB, free: 8.168 MB / 331.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.5128, allocations: 0.9375 kB / 440.5 MB, free: 8.168 MB / 331.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.000478/0.5133, allocations: 387.1 kB / 440.9 MB, free: 7.742 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/0.5133, allocations: 10.53 kB / 440.9 MB, free: 7.734 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.686e-05/0.5134, allocations: 7.906 kB / 440.9 MB, free: 7.727 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006267/0.514, allocations: 231 kB / 441.1 MB, free: 7.461 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.217e-05/0.5141, allocations: 3.953 kB / 441.1 MB, free: 7.457 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.529e-05/0.5141, allocations: 4 kB / 441.1 MB, free: 7.453 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.267e-05/0.5141, allocations: 3.938 kB / 441.1 MB, free: 7.449 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001388/0.5143, allocations: 68.05 kB / 441.2 MB, free: 7.363 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.5143, allocations: 0 / 441.2 MB, free: 7.363 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.829e-05/0.5143, allocations: 3.5 kB / 441.2 MB, free: 7.363 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.5144, allocations: 0 / 441.2 MB, free: 7.363 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004338/0.5148, allocations: 170.1 kB / 441.4 MB, free: 7.16 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.017e-05/0.5149, allocations: 24.77 kB / 441.4 MB, free: 7.129 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.464e-05/0.5149, allocations: 4.859 kB / 441.4 MB, free: 7.121 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.106e-05/0.5149, allocations: 3.984 kB / 441.4 MB, free: 7.117 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.191e-05/0.515, allocations: 69.84 kB / 441.5 MB, free: 7.035 MB / 331.1 MB Notification: Performance of pre-optimization done (n=1): time 1.583e-06/0.515, allocations: 0.9375 kB / 441.5 MB, free: 7.035 MB / 331.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001571/0.5152, allocations: 33.7 kB / 441.5 MB, free: 6.996 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.5153, allocations: 160.9 kB / 441.6 MB, free: 6.805 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002523/0.5156, allocations: 151.7 kB / 441.8 MB, free: 6.648 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 3.065e-05/0.5156, allocations: 29.7 kB / 441.8 MB, free: 6.613 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.006e-05/0.5157, allocations: 158.6 kB / 442 MB, free: 6.457 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.149e-05/0.5157, allocations: 3.906 kB / 442 MB, free: 6.453 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.246e-06/0.5158, allocations: 0 / 442 MB, free: 6.453 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.5159, allocations: 316.8 kB / 442.3 MB, free: 6.137 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.526e-05/0.5159, allocations: 3.938 kB / 442.3 MB, free: 6.133 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.356e-05/0.516, allocations: 51.41 kB / 442.3 MB, free: 6.07 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.626e-05/0.5161, allocations: 7.188 kB / 442.3 MB, free: 6.066 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.5161, allocations: 0 / 442.3 MB, free: 6.066 MB / 331.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.564e-05/0.5162, allocations: 37.69 kB / 442.4 MB, free: 6.023 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/0.5162, allocations: 11.95 kB / 442.4 MB, free: 6.012 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.5162, allocations: 0 / 442.4 MB, free: 6.012 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.5163, allocations: 0 / 442.4 MB, free: 6.012 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.014e-05/0.5163, allocations: 5.969 kB / 442.4 MB, free: 6.008 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.02e-06/0.5163, allocations: 0 / 442.4 MB, free: 6.008 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001385/0.5165, allocations: 4 kB / 442.4 MB, free: 6.004 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.001e-05/0.5165, allocations: 0 / 442.4 MB, free: 6.004 MB / 331.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: 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.0001035/0.5166, allocations: 113 kB / 442.5 MB, free: 5.887 MB / 331.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.791e-05/0.5167, allocations: 45.61 kB / 442.6 MB, free: 5.836 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.099e-05/0.5168, allocations: 11.86 kB / 442.6 MB, free: 5.824 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.812e-05/0.5168, allocations: 14.83 kB / 442.6 MB, free: 5.812 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.5168, allocations: 0 / 442.6 MB, free: 5.812 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.5168, allocations: 1.5 kB / 442.6 MB, free: 5.812 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.5169, allocations: 0 / 442.6 MB, free: 5.812 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002936/0.5172, allocations: 158.2 kB / 442.7 MB, free: 5.621 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.5172, allocations: 0 / 442.7 MB, free: 5.621 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.807e-05/0.5173, allocations: 4 kB / 442.7 MB, free: 5.617 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/0.5173, allocations: 3.953 kB / 442.8 MB, free: 5.613 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.5173, allocations: 4.031 kB / 442.8 MB, free: 5.609 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.5173, allocations: 3.984 kB / 442.8 MB, free: 5.605 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.5173, allocations: 0 / 442.8 MB, free: 5.605 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001661/0.5175, allocations: 71.61 kB / 442.8 MB, free: 5.52 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001346/0.5176, allocations: 101 kB / 442.9 MB, free: 5.402 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.829e-05/0.5177, allocations: 6.078 kB / 442.9 MB, free: 5.398 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001325/0.5178, allocations: 7.984 kB / 442.9 MB, free: 5.391 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.774e-05/0.5179, allocations: 8.031 kB / 443 MB, free: 5.383 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-06/0.5179, allocations: 0 / 443 MB, free: 5.383 MB / 331.1 MB Notification: Performance of sorting global known variables: time 0.0001646/0.5181, allocations: 127.3 kB / 443.1 MB, free: 5.258 MB / 331.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5181, allocations: 0 / 443.1 MB, free: 5.258 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0003195/0.5184, allocations: 23.98 kB / 443.1 MB, free: 5.234 MB / 331.1 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.0008765/0.5193, allocations: 0.6855 MB / 443.8 MB, free: 4.555 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0001037/0.5194, allocations: 15.98 kB / 443.8 MB, free: 4.539 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.5194, allocations: 0 / 443.8 MB, free: 4.539 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 1.604e-05/0.5195, allocations: 4 kB / 443.8 MB, free: 4.535 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001549/0.5196, allocations: 4 kB / 443.8 MB, free: 4.531 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000586/0.5202, allocations: 178.5 kB / 444 MB, free: 4.316 MB / 331.1 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]