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.001596/0.001596, allocations: 188.4 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.034/2.034, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001149/0.001149, allocations: 91.39 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004084/0.0004086, allocations: 8 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3459/0.3463, allocations: 47.57 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1253/0.4717, allocations: 75.4 MB / 450 MB, free: 5.242 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002845/0.4721, allocations: 67.97 kB / 450.1 MB, free: 5.176 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.01648/0.4886, allocations: 3.642 MB / 453.7 MB, free: 1.531 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.4886, allocations: 4 kB / 453.7 MB, free: 1.527 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.144e-06/0.4887, allocations: 4 kB / 453.7 MB, free: 1.523 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.0005833/0.4892, allocations: 412.8 kB / 454.1 MB, free: 1.066 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.4893, allocations: 11.97 kB / 454.2 MB, free: 1.055 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.604e-05/0.4894, allocations: 34.56 kB / 454.2 MB, free: 1.012 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.866e-05/0.4894, allocations: 7.906 kB / 454.2 MB, free: 1.004 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005853/0.49, allocations: 235.4 kB / 454.4 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.49, allocations: 3.953 kB / 454.4 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.943e-05/0.4901, allocations: 0 / 454.4 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001654/0.4903, allocations: 77.92 kB / 454.5 MB, free: 0.6328 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.4903, allocations: 0 / 454.5 MB, free: 0.6328 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.793e-05/0.4903, allocations: 4 kB / 454.5 MB, free: 0.6289 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.81e-06/0.4903, allocations: 0 / 454.5 MB, free: 0.6289 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.845e-05/0.4904, allocations: 7.984 kB / 454.5 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004438/0.4908, allocations: 185.7 kB / 454.7 MB, free: 400 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.63e-05/0.4909, allocations: 26.47 kB / 454.7 MB, free: 364 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.574e-06/0.4909, allocations: 0 / 454.7 MB, free: 364 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.23e-05/0.491, allocations: 64.25 kB / 454.8 MB, free: 284 kB / 330.7 MB Notification: Performance of pre-optimization done (n=1): time 1.473e-06/0.491, allocations: 0 / 454.8 MB, free: 284 kB / 330.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001935/0.4912, allocations: 45.66 kB / 454.8 MB, free: 232 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.987e-05/0.4913, allocations: 154.2 kB / 455 MB, free: 40 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002794/0.4916, allocations: 163 kB / 455.1 MB, free: 15.87 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.575e-05/0.4916, allocations: 29.7 kB / 455.2 MB, free: 15.84 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.772e-05/0.4917, allocations: 154.6 kB / 455.3 MB, free: 15.68 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.062e-05/0.4918, allocations: 7.844 kB / 455.3 MB, free: 15.68 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.226e-06/0.4918, allocations: 4 kB / 455.3 MB, free: 15.67 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.4919, allocations: 314.8 kB / 455.6 MB, free: 15.36 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.304e-05/0.492, allocations: 7.938 kB / 455.7 MB, free: 15.35 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.713e-05/0.4921, allocations: 48.22 kB / 455.7 MB, free: 15.29 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.975e-05/0.4921, allocations: 4 kB / 455.7 MB, free: 15.28 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4921, allocations: 0 / 455.7 MB, free: 15.28 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.679e-05/0.4922, allocations: 45.66 kB / 455.7 MB, free: 15.23 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.4922, allocations: 7.984 kB / 455.8 MB, free: 15.22 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.4923, allocations: 0 / 455.8 MB, free: 15.22 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.4923, allocations: 4 kB / 455.8 MB, free: 15.22 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.052e-05/0.4923, allocations: 8.031 kB / 455.8 MB, free: 15.21 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.4924, allocations: 0 / 455.8 MB, free: 15.21 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001444/0.4925, allocations: 4 kB / 455.8 MB, free: 15.21 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.179e-05/0.4925, allocations: 4 kB / 455.8 MB, free: 15.2 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 0.0001246/0.4927, allocations: 121.8 kB / 455.9 MB, free: 15.07 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.402e-05/0.4927, allocations: 11.86 kB / 455.9 MB, free: 15.06 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.958e-05/0.4928, allocations: 7.828 kB / 455.9 MB, free: 15.06 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.4928, allocations: 0 / 455.9 MB, free: 15.06 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.4928, allocations: 4 kB / 455.9 MB, free: 15.05 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.4928, allocations: 4 kB / 455.9 MB, free: 15.05 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002847/0.4931, allocations: 181.6 kB / 456.1 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.4931, allocations: 0 / 456.1 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.08e-05/0.4932, allocations: 0 / 456.1 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.781e-06/0.4932, allocations: 3.953 kB / 456.1 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/0.4932, allocations: 0 / 456.1 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.4932, allocations: 0 / 456.1 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.4932, allocations: 4 kB / 456.1 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001736/0.4934, allocations: 76.97 kB / 456.2 MB, free: 14.72 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001202/0.4935, allocations: 101 kB / 456.3 MB, free: 14.61 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.998e-05/0.4936, allocations: 7.953 kB / 456.3 MB, free: 14.6 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001297/0.4937, allocations: 4 kB / 456.3 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.733e-05/0.4938, allocations: 0 / 456.3 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/0.4938, allocations: 0 / 456.3 MB, free: 14.59 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001859/0.494, allocations: 141.9 kB / 456.4 MB, free: 14.46 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.3e-07/0.494, allocations: 0 / 456.4 MB, free: 14.46 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003039/0.4943, allocations: 20 kB / 456.4 MB, free: 14.44 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.0008689/0.4952, allocations: 0.6921 MB / 457.1 MB, free: 13.75 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001098/0.4953, allocations: 19.92 kB / 457.2 MB, free: 13.73 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.636e-06/0.4953, allocations: 0 / 457.2 MB, free: 13.73 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.076e-05/0.4954, allocations: 4 kB / 457.2 MB, free: 13.72 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001651/0.4955, allocations: 8 kB / 457.2 MB, free: 13.71 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001336/0.4969, allocations: 0.6096 MB / 457.8 MB, free: 13.05 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]