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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile") translateModel(Modelica.Utilities.Examples.ReadRealMatrixFromFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|x",fileNamePrefix="Modelica_4.0.0_Modelica.Utilities.Examples.ReadRealMatrixFromFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001563/0.001563, allocations: 105 kB / 17.59 MB, free: 5.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0022/0.0022, allocations: 191.3 kB / 18.51 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001179, allocations: 51.08 kB / 301.3 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1062, allocations: 49.45 MB / 350.7 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.ReadRealMatrixFromFile): time 0.001941/0.1082, allocations: 0.5221 MB / 351.2 MB, free: 3.91 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002764/0.111, allocations: 1.797 MB / 353 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.122e-05/0.1111, allocations: 0 / 353 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003555/0.1147, allocations: 133.4 kB / 353.2 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.394e-05/0.1148, allocations: 27.91 kB / 353.2 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002365/0.115, allocations: 43.88 kB / 353.2 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001411/0.1152, allocations: 75.8 kB / 353.3 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.905e-05/0.1152, allocations: 0 / 353.3 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.592e-05/0.1153, allocations: 31.86 kB / 353.3 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001288/0.1154, allocations: 31.91 kB / 353.4 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.769e-05/0.1155, allocations: 4 kB / 353.4 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.029e-05/0.1156, allocations: 11.98 kB / 353.4 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.512e-05/0.1157, allocations: 27.84 kB / 353.4 MB, free: 1.738 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.76e-05/0.1157, allocations: 23.81 kB / 353.4 MB, free: 1.715 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002394/0.116, allocations: 67.78 kB / 353.5 MB, free: 1.648 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.116, allocations: 0 / 353.5 MB, free: 1.648 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.116, allocations: 0 / 353.5 MB, free: 1.648 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.116, allocations: 0 / 353.5 MB, free: 1.648 MB / 286.1 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.0004994/0.1165, allocations: 397.2 kB / 353.9 MB, free: 1.207 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.607e-05/0.1166, allocations: 19.97 kB / 353.9 MB, free: 1.188 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.37e-05/0.1166, allocations: 8.844 kB / 353.9 MB, free: 1.18 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002757/0.1169, allocations: 204.2 kB / 354.1 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.468e-06/0.1169, allocations: 384 / 354.1 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.289e-05/0.117, allocations: 384 / 354.1 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001335/0.1171, allocations: 74.23 kB / 354.2 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.1171, allocations: 8 kB / 354.2 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.463e-05/0.1171, allocations: 0 / 354.2 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.656e-06/0.1172, allocations: 0 / 354.2 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.994e-05/0.1172, allocations: 4 kB / 354.2 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003311/0.1175, allocations: 177.7 kB / 354.4 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.136e-05/0.1176, allocations: 14.58 kB / 354.4 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.096e-05/0.1176, allocations: 12.92 kB / 354.4 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.516e-06/0.1176, allocations: 7.938 kB / 354.4 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.262e-05/0.1177, allocations: 68.2 kB / 354.5 MB, free: 496 kB / 286.1 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.1177, allocations: 0 / 354.5 MB, free: 496 kB / 286.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001459/0.1178, allocations: 41.59 kB / 354.5 MB, free: 448 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.865e-05/0.1179, allocations: 158.2 kB / 354.7 MB, free: 252 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001479/0.1181, allocations: 156 kB / 354.8 MB, free: 88 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.1181, allocations: 29.7 kB / 354.9 MB, free: 52 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.569e-05/0.1182, allocations: 92.25 kB / 355 MB, free: 15.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.234e-05/0.1182, allocations: 7.906 kB / 355 MB, free: 15.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.01e-05/0.1183, allocations: 21.72 kB / 355 MB, free: 15.92 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.1184, allocations: 322.8 kB / 355.3 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.751e-05/0.1184, allocations: 4 kB / 355.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.074e-05/0.1185, allocations: 44.22 kB / 355.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.272e-05/0.1185, allocations: 16.92 kB / 355.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1185, allocations: 0 / 355.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.27e-05/0.1186, allocations: 53.53 kB / 355.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.1186, allocations: 11.94 kB / 355.4 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.1186, allocations: 0 / 355.4 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.1186, allocations: 0 / 355.4 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.412e-05/0.1187, allocations: 4 kB / 355.4 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.231e-06/0.1187, allocations: 7.922 kB / 355.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.034e-05/0.1188, allocations: 3.938 kB / 355.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.1188, allocations: 7.938 kB / 355.4 MB, free: 15.42 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.255e-05/0.1189, allocations: 117.9 kB / 355.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.277e-05/0.1189, allocations: 11.84 kB / 355.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.494e-05/0.119, allocations: 11.88 kB / 355.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.119, allocations: 0 / 355.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.119, allocations: 0 / 355.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.119, allocations: 0 / 355.6 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001875/0.1192, allocations: 173.6 kB / 355.8 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.1192, allocations: 0 / 355.8 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.991e-05/0.1192, allocations: 7.938 kB / 355.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.1192, allocations: 4 kB / 355.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.042e-06/0.1192, allocations: 0 / 355.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.1193, allocations: 0 / 355.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1193, allocations: 0 / 355.8 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001216/0.1194, allocations: 76.97 kB / 355.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.871e-05/0.1195, allocations: 93.06 kB / 355.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.081e-05/0.1195, allocations: 0 / 355.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.905e-05/0.1196, allocations: 8.094 kB / 355.9 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.542e-05/0.1196, allocations: 0 / 355.9 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.1196, allocations: 0 / 355.9 MB, free: 14.83 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.087e-05/0.1197, allocations: 122.5 kB / 356.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1197, allocations: 0 / 356.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002268/0.1199, allocations: 16 kB / 356.1 MB, free: 14.7 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003898/0.1203, allocations: 183.7 kB / 356.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 9.31e-05/0.1204, allocations: 16 kB / 356.3 MB, free: 14.53 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.1204, allocations: 4.062 kB / 356.3 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.472e-05/0.1205, allocations: 7.984 kB / 356.3 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001673/0.1206, allocations: 11.94 kB / 356.3 MB, free: 14.5 MB / 302.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:7734:5-7734:67:writable] Error: Internal error createModelInfo failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:803:5-803:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]