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.00109/0.00109, allocations: 180.5 kB / 16.38 MB, free: 5.766 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: 223.2 MB / 240.3 MB, free: 11.87 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 100.6 kB / 291.5 MB, free: 10.88 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002785/0.0002786, allocations: 8 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.2623, allocations: 50.41 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1019/0.3642, allocations: 76.3 MB / 477.9 MB, free: 4.148 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002007/0.3645, allocations: 67.97 kB / 477.9 MB, free: 4.082 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.01058/0.3751, allocations: 3.592 MB / 481.5 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.216e-06/0.3751, allocations: 0 / 481.5 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.398e-06/0.3751, allocations: 8 kB / 481.5 MB, free: 496 kB / 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.0005001/0.3756, allocations: 412.8 kB / 481.9 MB, free: 28 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.582e-05/0.3757, allocations: 12.03 kB / 481.9 MB, free: 16 kB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.324e-05/0.3758, allocations: 34.56 kB / 482 MB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.106e-05/0.3758, allocations: 15.8 kB / 482 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004011/0.3762, allocations: 221.8 kB / 482.2 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.458e-06/0.3763, allocations: 0 / 482.2 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.016e-05/0.3763, allocations: 8 kB / 482.2 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000225/0.3765, allocations: 65.98 kB / 482.3 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.938e-05/0.3766, allocations: 4 kB / 482.3 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.483e-05/0.3767, allocations: 3.953 kB / 482.3 MB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.449e-06/0.3767, allocations: 3.938 kB / 482.3 MB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.997e-05/0.3767, allocations: 3.938 kB / 482.3 MB, free: 15.59 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003965/0.3771, allocations: 185.7 kB / 482.5 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.658e-05/0.3772, allocations: 22.52 kB / 482.5 MB, free: 15.33 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.286e-06/0.3772, allocations: 0 / 482.5 MB, free: 15.33 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.874e-05/0.3773, allocations: 68.31 kB / 482.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 7.72e-07/0.3773, allocations: 0 / 482.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001592/0.3774, allocations: 45.55 kB / 482.6 MB, free: 15.2 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.757e-05/0.3775, allocations: 158.2 kB / 482.8 MB, free: 15.01 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001783/0.3777, allocations: 161.4 kB / 482.9 MB, free: 14.84 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.017e-05/0.3777, allocations: 29.7 kB / 483 MB, free: 14.8 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.631e-05/0.3778, allocations: 88.14 kB / 483 MB, free: 14.71 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.646e-05/0.3778, allocations: 11.91 kB / 483.1 MB, free: 14.7 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.763e-06/0.3779, allocations: 0 / 483.1 MB, free: 14.7 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.378, allocations: 318.8 kB / 483.4 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.501e-05/0.378, allocations: 4 kB / 483.4 MB, free: 14.38 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.94e-05/0.3781, allocations: 44.28 kB / 483.4 MB, free: 14.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.457e-05/0.3781, allocations: 12.59 kB / 483.4 MB, free: 14.31 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.3781, allocations: 0 / 483.4 MB, free: 14.31 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.652e-05/0.3782, allocations: 41.69 kB / 483.5 MB, free: 14.26 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.3782, allocations: 4 kB / 483.5 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.3782, allocations: 0 / 483.5 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.3782, allocations: 8.031 kB / 483.5 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.893e-05/0.3783, allocations: 3.953 kB / 483.5 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.3783, allocations: 4.094 kB / 483.5 MB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.712e-05/0.3784, allocations: 7.906 kB / 483.5 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.605e-06/0.3784, allocations: 8 kB / 483.5 MB, free: 14.23 MB / 362.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 8.496e-05/0.3785, allocations: 121.8 kB / 483.6 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.869e-05/0.3785, allocations: 4 kB / 483.6 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.159e-05/0.3785, allocations: 3.875 kB / 483.6 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.3785, allocations: 0 / 483.6 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.3785, allocations: 7.953 kB / 483.6 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.411e-06/0.3786, allocations: 3.984 kB / 483.6 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001855/0.3788, allocations: 185.5 kB / 483.8 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.3788, allocations: 0 / 483.8 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.668e-05/0.3788, allocations: 3.938 kB / 483.8 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.3788, allocations: 0 / 483.8 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.653e-06/0.3788, allocations: 0 / 483.8 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.3788, allocations: 0 / 483.8 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3788, allocations: 4 kB / 483.8 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001294/0.379, allocations: 73.11 kB / 483.9 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000221/0.3792, allocations: 101 kB / 484 MB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.413e-05/0.3792, allocations: 7.938 kB / 484 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.975e-05/0.3793, allocations: 7.984 kB / 484 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.257e-06/0.3793, allocations: 0 / 484 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.924e-06/0.3793, allocations: 0 / 484 MB, free: 13.62 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001293/0.3795, allocations: 138.1 kB / 484.1 MB, free: 13.48 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3795, allocations: 0 / 484.1 MB, free: 13.48 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000217/0.3797, allocations: 23.97 kB / 484.2 MB, free: 13.46 MB / 362.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.0007859/0.3805, allocations: 0.6908 MB / 484.9 MB, free: 12.79 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.178e-05/0.3806, allocations: 15.98 kB / 484.9 MB, free: 12.77 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3806, allocations: 0 / 484.9 MB, free: 12.77 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.745e-06/0.3806, allocations: 4 kB / 484.9 MB, free: 12.77 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001264/0.3808, allocations: 15.89 kB / 484.9 MB, free: 12.75 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001019/0.3818, allocations: 0.5918 MB / 485.5 MB, free: 12.1 MB / 362.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]