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.001208/0.001208, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 221.4 MB / 235.5 MB, free: 2.906 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.0009562/0.0009564, allocations: 87.61 kB / 286.5 MB, free: 172 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.569e-05/2.572e-05, allocations: 4 kB / 343.9 MB, free: 4.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.114, allocations: 50.41 MB / 394.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3611/0.4752, allocations: 76.24 MB / 470.6 MB, free: 11.24 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002998/0.4755, allocations: 67.97 kB / 470.6 MB, free: 11.17 MB / 346.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.01012/0.4857, allocations: 3.405 MB / 474 MB, free: 7.773 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.4857, allocations: 0 / 474 MB, free: 7.773 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.4857, allocations: 8 kB / 474 MB, free: 7.766 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.0003801/0.4861, allocations: 384.8 kB / 474.4 MB, free: 7.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/0.4862, allocations: 12.03 kB / 474.4 MB, free: 7.328 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.683e-05/0.4862, allocations: 30.56 kB / 474.5 MB, free: 7.289 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.006e-05/0.4863, allocations: 11.86 kB / 474.5 MB, free: 7.277 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003641/0.4866, allocations: 215 kB / 474.7 MB, free: 7.027 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.206e-05/0.4867, allocations: 3.938 kB / 474.7 MB, free: 7.023 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.948e-05/0.4867, allocations: 0 / 474.7 MB, free: 7.023 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001281/0.4868, allocations: 77.92 kB / 474.8 MB, free: 6.926 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-06/0.4868, allocations: 0 / 474.8 MB, free: 6.926 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.4869, allocations: 3.953 kB / 474.8 MB, free: 6.922 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.4869, allocations: 0 / 474.8 MB, free: 6.922 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.11e-05/0.4869, allocations: 7.938 kB / 474.8 MB, free: 6.914 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003447/0.4873, allocations: 185.6 kB / 475 MB, free: 6.684 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.735e-05/0.4873, allocations: 26.52 kB / 475 MB, free: 6.648 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.139e-05/0.4873, allocations: 8.844 kB / 475 MB, free: 6.637 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.048e-05/0.4873, allocations: 0 / 475 MB, free: 6.637 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.628e-05/0.4874, allocations: 64.98 kB / 475.1 MB, free: 6.559 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.4874, allocations: 0 / 475.1 MB, free: 6.559 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001272/0.4875, allocations: 41.59 kB / 475.1 MB, free: 6.512 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.829e-05/0.4876, allocations: 162.2 kB / 475.3 MB, free: 6.316 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000171/0.4878, allocations: 156.4 kB / 475.4 MB, free: 6.156 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.022e-05/0.4878, allocations: 29.7 kB / 475.4 MB, free: 6.121 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.15e-05/0.4879, allocations: 92.14 kB / 475.5 MB, free: 6.027 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.454e-05/0.4879, allocations: 11.84 kB / 475.5 MB, free: 6.016 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.385e-06/0.4879, allocations: 0 / 475.5 MB, free: 6.016 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.4881, allocations: 318.8 kB / 475.9 MB, free: 5.695 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.378e-05/0.4881, allocations: 4 kB / 475.9 MB, free: 5.691 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.075e-05/0.4882, allocations: 44.28 kB / 475.9 MB, free: 5.633 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.863e-05/0.4882, allocations: 4 kB / 475.9 MB, free: 5.629 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.4882, allocations: 0 / 475.9 MB, free: 5.629 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.834e-05/0.4883, allocations: 57.53 kB / 476 MB, free: 5.566 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.4883, allocations: 4 kB / 476 MB, free: 5.562 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.4883, allocations: 0 / 476 MB, free: 5.562 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.4883, allocations: 4.047 kB / 476 MB, free: 5.559 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.872e-05/0.4884, allocations: 8 kB / 476 MB, free: 5.551 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.4884, allocations: 0 / 476 MB, free: 5.551 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.641e-05/0.4885, allocations: 4 kB / 476 MB, free: 5.547 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.621e-06/0.4885, allocations: 0 / 476 MB, free: 5.547 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 8.239e-05/0.4886, allocations: 105 kB / 476.1 MB, free: 5.438 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.932e-05/0.4886, allocations: 7.906 kB / 476.1 MB, free: 5.43 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.056e-05/0.4886, allocations: 15.64 kB / 476.1 MB, free: 5.414 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-06/0.4886, allocations: 0 / 476.1 MB, free: 5.414 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.4886, allocations: 3.953 kB / 476.1 MB, free: 5.41 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-06/0.4886, allocations: 7.938 kB / 476.1 MB, free: 5.402 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002168/0.4889, allocations: 173.7 kB / 476.3 MB, free: 5.184 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.4889, allocations: 0 / 476.3 MB, free: 5.184 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.164e-05/0.4889, allocations: 11.98 kB / 476.3 MB, free: 5.172 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.4889, allocations: 0 / 476.3 MB, free: 5.172 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.594e-06/0.4889, allocations: 0 / 476.3 MB, free: 5.172 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.4889, allocations: 3.938 kB / 476.3 MB, free: 5.168 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.489, allocations: 0 / 476.3 MB, free: 5.168 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001227/0.4891, allocations: 80.92 kB / 476.4 MB, free: 5.07 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.584e-05/0.4892, allocations: 97.03 kB / 476.5 MB, free: 4.957 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.553e-05/0.4892, allocations: 3.984 kB / 476.5 MB, free: 4.953 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.582e-05/0.4893, allocations: 4.047 kB / 476.5 MB, free: 4.949 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.271e-05/0.4893, allocations: 3.984 kB / 476.5 MB, free: 4.945 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.4893, allocations: 0 / 476.5 MB, free: 4.945 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001147/0.4895, allocations: 141.4 kB / 476.6 MB, free: 4.809 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4895, allocations: 0 / 476.6 MB, free: 4.809 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002155/0.4897, allocations: 31.98 kB / 476.7 MB, free: 4.777 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.0006442/0.4903, allocations: 0.6794 MB / 477.3 MB, free: 4.098 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.37e-05/0.4904, allocations: 8 kB / 477.3 MB, free: 4.09 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.4904, allocations: 0 / 477.3 MB, free: 4.09 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.036e-05/0.4905, allocations: 4 kB / 477.3 MB, free: 4.086 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001186/0.4906, allocations: 16.08 kB / 477.4 MB, free: 4.07 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000404/0.491, allocations: 156.4 kB / 477.5 MB, free: 3.883 MB / 346.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]