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.002077/0.002077, allocations: 181.4 kB / 13.66 MB, free: 1.664 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.159/2.159, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001189/0.001188, allocations: 90.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.083e-05/3.118e-05, allocations: 0 / 321.6 MB, free: 17.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1039, allocations: 47.58 MB / 369.2 MB, free: 2.129 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4428/0.5468, allocations: 75.31 MB / 444.5 MB, free: 1.496 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003984/0.5473, allocations: 67.41 kB / 444.5 MB, free: 1.461 MB / 314.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.02277/0.5701, allocations: 3.458 MB / 448 MB, free: 14.77 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.865e-06/0.5701, allocations: 0 / 448 MB, free: 14.77 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.284e-05/0.5701, allocations: 4 kB / 448 MB, free: 14.77 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.0005582/0.5707, allocations: 384.5 kB / 448.4 MB, free: 14.35 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.303e-05/0.5708, allocations: 12.03 kB / 448.4 MB, free: 14.34 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.742e-05/0.5709, allocations: 30.56 kB / 448.4 MB, free: 14.3 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.21e-05/0.571, allocations: 11.84 kB / 448.4 MB, free: 14.29 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009159/0.5719, allocations: 231.4 kB / 448.7 MB, free: 14.03 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.572, allocations: 4.828 kB / 448.7 MB, free: 14.03 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.52e-05/0.572, allocations: 0 / 448.7 MB, free: 14.03 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002237/0.5722, allocations: 77.67 kB / 448.7 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.5723, allocations: 0 / 448.7 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.214e-05/0.5723, allocations: 0 / 448.7 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.5723, allocations: 4 kB / 448.8 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.914e-05/0.5724, allocations: 0 / 448.8 MB, free: 13.93 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005919/0.573, allocations: 185.3 kB / 448.9 MB, free: 13.71 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.414e-05/0.5731, allocations: 26.47 kB / 449 MB, free: 13.67 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.497e-05/0.5732, allocations: 12.92 kB / 449 MB, free: 13.66 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.438e-06/0.5732, allocations: 0 / 449 MB, free: 13.66 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.278e-05/0.5733, allocations: 68 kB / 449 MB, free: 13.58 MB / 330.7 MB Notification: Performance of pre-optimization done (n=1): time 2.304e-06/0.5733, allocations: 3.938 kB / 449 MB, free: 13.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002111/0.5735, allocations: 37.7 kB / 449.1 MB, free: 13.53 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001526/0.5737, allocations: 154.2 kB / 449.2 MB, free: 13.34 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004151/0.5741, allocations: 160.6 kB / 449.4 MB, free: 13.2 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.863e-05/0.5742, allocations: 29.69 kB / 449.4 MB, free: 13.16 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.5743, allocations: 158.4 kB / 449.6 MB, free: 13.01 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.805e-05/0.5744, allocations: 7.906 kB / 449.6 MB, free: 13 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.873e-06/0.5744, allocations: 0 / 449.6 MB, free: 13 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001862/0.5746, allocations: 318.7 kB / 449.9 MB, free: 12.68 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.878e-05/0.5747, allocations: 7.938 kB / 449.9 MB, free: 12.68 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.174e-05/0.5748, allocations: 36.28 kB / 449.9 MB, free: 12.62 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.069e-05/0.5748, allocations: 15.94 kB / 449.9 MB, free: 12.61 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.5749, allocations: 0 / 449.9 MB, free: 12.61 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001639/0.575, allocations: 41.64 kB / 450 MB, free: 12.57 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.948e-05/0.5751, allocations: 8 kB / 450 MB, free: 12.56 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.5751, allocations: 0 / 450 MB, free: 12.56 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/0.5752, allocations: 0 / 450 MB, free: 12.56 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.449e-05/0.5752, allocations: 7.938 kB / 450 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.238e-06/0.5753, allocations: 0 / 450 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002021/0.5755, allocations: 8.031 kB / 450 MB, free: 12.54 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.846e-06/0.5755, allocations: 0 / 450 MB, free: 12.54 MB / 330.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 0.0001418/0.5757, allocations: 108.8 kB / 450.1 MB, free: 12.43 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.481e-05/0.5757, allocations: 11.86 kB / 450.1 MB, free: 12.42 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.737e-05/0.5758, allocations: 15.59 kB / 450.1 MB, free: 12.4 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.5758, allocations: 0 / 450.1 MB, free: 12.4 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.5759, allocations: 0 / 450.1 MB, free: 12.4 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.5759, allocations: 0 / 450.1 MB, free: 12.4 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003993/0.5763, allocations: 177.3 kB / 450.3 MB, free: 12.19 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.5763, allocations: 0 / 450.3 MB, free: 12.19 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.465e-05/0.5764, allocations: 7.984 kB / 450.3 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.207e-06/0.5764, allocations: 3.953 kB / 450.3 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.911e-05/0.5765, allocations: 4 kB / 450.3 MB, free: 12.17 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.001e-06/0.5765, allocations: 0 / 450.3 MB, free: 12.17 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/0.5765, allocations: 48 / 450.3 MB, free: 12.17 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003694/0.5769, allocations: 80.52 kB / 450.4 MB, free: 12.08 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001661/0.5771, allocations: 96.97 kB / 450.5 MB, free: 11.97 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.279e-05/0.5772, allocations: 12.03 kB / 450.5 MB, free: 11.96 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000141/0.5774, allocations: 4 kB / 450.5 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.957e-05/0.5774, allocations: 3.938 kB / 450.5 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.339e-06/0.5774, allocations: 0 / 450.5 MB, free: 11.95 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001907/0.5776, allocations: 134.6 kB / 450.7 MB, free: 11.83 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5776, allocations: 0 / 450.7 MB, free: 11.83 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003009/0.5779, allocations: 23.94 kB / 450.7 MB, free: 11.81 MB / 330.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.0008788/0.5788, allocations: 0.6951 MB / 451.4 MB, free: 11.11 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001019/0.5789, allocations: 11.94 kB / 451.4 MB, free: 11.09 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.579, allocations: 0 / 451.4 MB, free: 11.09 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.66e-05/0.579, allocations: 4 kB / 451.4 MB, free: 11.09 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001476/0.5792, allocations: 7.812 kB / 451.4 MB, free: 11.09 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00057/0.5798, allocations: 182.8 kB / 451.6 MB, free: 10.87 MB / 330.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]