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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001018/0.001018, allocations: 183.3 kB / 8.479 MB, free: 0.5234 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.122/1.122, allocations: 205.2 MB / 214.1 MB, free: 8.57 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008639/0.0008639, allocations: 98.53 kB / 262.1 MB, free: 5.102 MB / 210.8 MB Notification: Performance of FrontEnd - loaded program: time 0.09295/0.09385, allocations: 52.97 MB / 315.1 MB, free: 1.91 MB / 258.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08105/0.1749, allocations: 47.57 MB / 362.6 MB, free: 2.219 MB / 306.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2085/0.3834, allocations: 74.62 MB / 437.2 MB, free: 12.92 MB / 322.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001458/0.3836, allocations: 65.78 kB / 437.3 MB, free: 12.89 MB / 322.8 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: 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.01461/0.3982, allocations: 5.729 MB / 443 MB, free: 8.449 MB / 322.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.3983, allocations: 8 kB / 443 MB, free: 8.441 MB / 322.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.954e-05/0.3984, allocations: 11.06 kB / 443.1 MB, free: 8.434 MB / 322.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005752/0.3989, allocations: 375.6 kB / 443.4 MB, free: 8.055 MB / 322.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.399, allocations: 0 / 443.4 MB, free: 8.055 MB / 322.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.671e-05/0.399, allocations: 4 kB / 443.4 MB, free: 8.051 MB / 322.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.115e-05/0.399, allocations: 3.984 kB / 443.4 MB, free: 8.047 MB / 322.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.388e-05/0.3991, allocations: 75.42 kB / 443.5 MB, free: 7.957 MB / 322.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.074e-06/0.3991, allocations: 0 / 443.5 MB, free: 7.957 MB / 322.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.496e-05/0.3992, allocations: 1.406 kB / 443.5 MB, free: 7.957 MB / 322.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.379e-06/0.3992, allocations: 0 / 443.5 MB, free: 7.957 MB / 322.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002861/0.3995, allocations: 165.1 kB / 443.7 MB, free: 7.766 MB / 322.8 MB Notification: Performance of preOpt comSubExp (simulation): time 3.353e-05/0.3995, allocations: 22.02 kB / 443.7 MB, free: 7.738 MB / 322.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.733e-05/0.3995, allocations: 8.797 kB / 443.7 MB, free: 7.727 MB / 322.8 MB Notification: Performance of preOpt evalFunc (simulation): time 9.528e-06/0.3996, allocations: 0 / 443.7 MB, free: 7.727 MB / 322.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.281e-05/0.3996, allocations: 60.33 kB / 443.8 MB, free: 7.652 MB / 322.8 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.3996, allocations: 1.156 kB / 443.8 MB, free: 7.652 MB / 322.8 MB Notification: Performance of matching and sorting (n=1): time 0.0001313/0.3997, allocations: 41.59 kB / 443.8 MB, free: 7.605 MB / 322.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.313e-05/0.3998, allocations: 157.8 kB / 444 MB, free: 7.418 MB / 322.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/0.3999, allocations: 153.6 kB / 444.1 MB, free: 7.273 MB / 322.8 MB Notification: Performance of collectPreVariables (initialization): time 1.34e-05/0.3999, allocations: 26.73 kB / 444.1 MB, free: 7.242 MB / 322.8 MB Notification: Performance of collectInitialEqns (initialization): time 2.269e-05/0.4, allocations: 87.58 kB / 444.2 MB, free: 7.156 MB / 322.8 MB Notification: Performance of collectInitialBindings (initialization): time 1.643e-05/0.4, allocations: 4.594 kB / 444.2 MB, free: 7.152 MB / 322.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.905e-06/0.4, allocations: 0 / 444.2 MB, free: 7.152 MB / 322.8 MB Notification: Performance of setup shared object (initialization): time 4.801e-05/0.4001, allocations: 324.7 kB / 444.5 MB, free: 6.832 MB / 322.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.264e-05/0.4001, allocations: 4.031 kB / 444.5 MB, free: 6.828 MB / 322.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.757e-05/0.4001, allocations: 47.47 kB / 444.6 MB, free: 6.77 MB / 322.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.867e-05/0.4002, allocations: 4 kB / 444.6 MB, free: 6.766 MB / 322.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.4002, allocations: 0 / 444.6 MB, free: 6.766 MB / 322.8 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.92e-05/0.4002, allocations: 49.34 kB / 444.6 MB, free: 6.715 MB / 322.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.4003, allocations: 7.938 kB / 444.6 MB, free: 6.707 MB / 322.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-06/0.4003, allocations: 4.094 kB / 444.7 MB, free: 6.703 MB / 322.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.4003, allocations: 0 / 444.7 MB, free: 6.703 MB / 322.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.342e-05/0.4003, allocations: 4 kB / 444.7 MB, free: 6.699 MB / 322.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.4003, allocations: 0.7031 kB / 444.7 MB, free: 6.699 MB / 322.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.545e-05/0.4004, allocations: 7.906 kB / 444.7 MB, free: 6.691 MB / 322.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.902e-06/0.4005, allocations: 0 / 444.7 MB, free: 6.691 MB / 322.8 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 5.401e-05/0.4005, allocations: 106.2 kB / 444.8 MB, free: 6.582 MB / 322.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.413e-05/0.4006, allocations: 7.906 kB / 444.8 MB, free: 6.574 MB / 322.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.216e-05/0.4006, allocations: 14.83 kB / 444.8 MB, free: 6.566 MB / 322.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.4006, allocations: 7.938 kB / 444.8 MB, free: 6.559 MB / 322.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.4006, allocations: 1.312 kB / 444.8 MB, free: 6.559 MB / 322.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.4006, allocations: 0 / 444.8 MB, free: 6.559 MB / 322.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001567/0.4008, allocations: 157.8 kB / 445 MB, free: 6.371 MB / 322.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.4008, allocations: 0 / 445 MB, free: 6.371 MB / 322.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.288e-05/0.4008, allocations: 7.984 kB / 445 MB, free: 6.363 MB / 322.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.4008, allocations: 0 / 445 MB, free: 6.363 MB / 322.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-06/0.4009, allocations: 0 / 445 MB, free: 6.363 MB / 322.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.4009, allocations: 0 / 445 MB, free: 6.363 MB / 322.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.4009, allocations: 0 / 445 MB, free: 6.363 MB / 322.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001328/0.401, allocations: 78.59 kB / 445 MB, free: 6.273 MB / 322.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001465/0.4012, allocations: 464.7 kB / 445.5 MB, free: 5.805 MB / 322.8 MB Notification: Performance of postOpt removeConstants (simulation): time 6.065e-05/0.4013, allocations: 96.28 kB / 445.6 MB, free: 5.695 MB / 322.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.315e-05/0.4013, allocations: 4.172 kB / 445.6 MB, free: 5.691 MB / 322.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.202e-05/0.4014, allocations: 8.047 kB / 445.6 MB, free: 5.684 MB / 322.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.797e-05/0.4014, allocations: 3.984 kB / 445.6 MB, free: 5.68 MB / 322.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.815e-06/0.4014, allocations: 0 / 445.6 MB, free: 5.68 MB / 322.8 MB Notification: Performance of sort global known variables: time 8.692e-05/0.4015, allocations: 133.4 kB / 445.7 MB, free: 5.566 MB / 322.8 MB Notification: Performance of remove unused functions: time 0.0008605/0.4024, allocations: 29.72 kB / 445.8 MB, free: 5.539 MB / 322.8 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.000312/0.4027, allocations: 164.9 kB / 445.9 MB, free: 5.41 MB / 322.8 MB Notification: Performance of simCode: created initialization part: time 6.692e-05/0.4028, allocations: 11.31 kB / 445.9 MB, free: 5.402 MB / 322.8 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.4028, allocations: 0 / 445.9 MB, free: 5.402 MB / 322.8 MB Notification: Performance of simCode: created simulation system equations: time 7.695e-06/0.4028, allocations: 4 kB / 445.9 MB, free: 5.398 MB / 322.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001084/0.4029, allocations: 15.98 kB / 446 MB, free: 5.387 MB / 322.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002315/0.4032, allocations: 102.6 kB / 446.1 MB, free: 5.262 MB / 322.8 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:596:5-596:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] Error: Internal error SimCode: The model Modelica.Utilities.Examples.ReadRealMatrixFromFile could not be translated to FMU