Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.VariablesTypes.VectorsMatrices2.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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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: "" <> buildModelFMU(HanserModelica.VariablesTypes.VectorsMatrices2,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_VectorsMatrices2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.VariablesTypes.VectorsMatrices2,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_VectorsMatrices2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005653/0.005653, allocations: 98.02 kB / 15.73 MB, free: 6.062 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.461/1.461, allocations: 222.9 MB / 239.4 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001631/0.001631, allocations: 184.5 kB / 289.7 MB, free: 2.254 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03509/0.03509, allocations: 8.804 MB / 348.7 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 75.88 kB / 463.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1017, allocations: 51.57 MB / 0.5029 GB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.VariablesTypes.VectorsMatrices2): time 0.001678/0.1034, allocations: 0.4986 MB / 0.5034 GB, free: 9.508 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001352/0.1048, allocations: 1.1 MB / 0.5045 GB, free: 8.391 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.112e-05/0.1049, allocations: 0 / 0.5045 GB, free: 8.391 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000225/0.1051, allocations: 15.92 kB / 0.5045 GB, free: 8.375 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.66e-05/0.1052, allocations: 27.91 kB / 0.5045 GB, free: 8.348 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.276e-06/0.1052, allocations: 0 / 0.5045 GB, free: 8.348 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.804e-05/0.1053, allocations: 27.84 kB / 0.5045 GB, free: 8.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.003e-05/0.1053, allocations: 4.281 kB / 0.5045 GB, free: 8.316 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001004/0.1054, allocations: 15.98 kB / 0.5045 GB, free: 8.301 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001008/0.1055, allocations: 27.84 kB / 0.5046 GB, free: 8.273 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.547e-05/0.1056, allocations: 4 kB / 0.5046 GB, free: 8.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.748e-06/0.1056, allocations: 0 / 0.5046 GB, free: 8.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001372/0.1057, allocations: 67.84 kB / 0.5046 GB, free: 8.203 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.649e-05/0.1058, allocations: 27.69 kB / 0.5047 GB, free: 8.176 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.398e-05/0.1058, allocations: 51.66 kB / 0.5047 GB, free: 8.125 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1059, allocations: 4 kB / 0.5047 GB, free: 8.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1059, allocations: 0 / 0.5047 GB, free: 8.121 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.099e-06/0.1059, allocations: 0 / 0.5047 GB, free: 8.121 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0005654/0.1064, allocations: 410.8 kB / 0.5051 GB, free: 7.672 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.56e-05/0.1065, allocations: 8.031 kB / 0.5051 GB, free: 7.664 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.044e-05/0.1066, allocations: 110 kB / 0.5052 GB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.123e-05/0.1066, allocations: 88.12 kB / 0.5053 GB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002416/0.1069, allocations: 296.3 kB / 0.5056 GB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.697e-05/0.1069, allocations: 154.9 kB / 0.5057 GB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.925e-05/0.107, allocations: 150.9 kB / 0.5059 GB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.389e-05/0.1071, allocations: 113 kB / 0.506 GB, free: 6.711 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.442e-05/0.1071, allocations: 75.28 kB / 0.5061 GB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.187e-05/0.1072, allocations: 150.6 kB / 0.5062 GB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.389e-05/0.1073, allocations: 158.5 kB / 0.5064 GB, free: 6.332 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.597e-05/0.1073, allocations: 150.6 kB / 0.5065 GB, free: 6.184 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003558/0.1077, allocations: 481.9 kB / 0.507 GB, free: 5.664 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.858e-05/0.1078, allocations: 173 kB / 0.5071 GB, free: 5.484 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.734e-05/0.1079, allocations: 88.14 kB / 0.5072 GB, free: 5.395 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.314e-05/0.1079, allocations: 79.28 kB / 0.5073 GB, free: 5.316 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.402e-05/0.108, allocations: 109.8 kB / 0.5074 GB, free: 5.199 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.032e-06/0.108, allocations: 0 / 0.5074 GB, free: 5.199 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 9.154e-05/0.1081, allocations: 33.66 kB / 0.5074 GB, free: 5.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.394e-05/0.1081, allocations: 126.7 kB / 0.5075 GB, free: 5.023 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002697/0.1084, allocations: 239.7 kB / 0.5078 GB, free: 4.777 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.388e-05/0.1084, allocations: 25.7 kB / 0.5078 GB, free: 4.746 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.895e-05/0.1085, allocations: 120.1 kB / 0.5079 GB, free: 4.625 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.385e-06/0.1085, allocations: 0 / 0.5079 GB, free: 4.625 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-05/0.1085, allocations: 13.72 kB / 0.5079 GB, free: 4.605 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.1087, allocations: 322.8 kB / 0.5082 GB, free: 4.281 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.053e-06/0.1087, allocations: 0 / 0.5082 GB, free: 4.281 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.098e-06/0.1087, allocations: 0 / 0.5082 GB, free: 4.281 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.956e-05/0.1087, allocations: 75.28 kB / 0.5083 GB, free: 4.207 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.788e-05/0.1088, allocations: 79.28 kB / 0.5084 GB, free: 4.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 7.567e-05/0.1089, allocations: 49.53 kB / 0.5084 GB, free: 4.074 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.185e-05/0.1089, allocations: 83.28 kB / 0.5085 GB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.161e-05/0.109, allocations: 79.22 kB / 0.5086 GB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.148e-05/0.109, allocations: 154.6 kB / 0.5087 GB, free: 3.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.174e-05/0.1091, allocations: 79.22 kB / 0.5088 GB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.405e-05/0.1091, allocations: 158.6 kB / 0.509 GB, free: 3.527 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.1093, allocations: 83.42 kB / 0.509 GB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.921e-05/0.1093, allocations: 83.23 kB / 0.5091 GB, free: 3.363 MB / 350.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 (0): * Single equations (assignments): 0 * 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 0.0001581/0.1094, allocations: 280.4 kB / 0.5094 GB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.703e-05/0.1095, allocations: 124.8 kB / 0.5095 GB, free: 2.949 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.87e-05/0.1096, allocations: 121.5 kB / 0.5096 GB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.119e-05/0.1097, allocations: 180.3 kB / 0.5098 GB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.886e-05/0.1098, allocations: 184.3 kB / 0.51 GB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.161e-05/0.1098, allocations: 184.2 kB / 0.5101 GB, free: 2.262 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002505/0.1101, allocations: 433.2 kB / 0.5106 GB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.307e-05/0.1101, allocations: 108.9 kB / 0.5107 GB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.079e-05/0.1102, allocations: 116.8 kB / 0.5108 GB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.176e-05/0.1103, allocations: 180.3 kB / 0.5109 GB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.303e-05/0.1103, allocations: 180.2 kB / 0.5111 GB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.801e-05/0.1104, allocations: 176.3 kB / 0.5113 GB, free: 1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.958e-05/0.1105, allocations: 184.2 kB / 0.5115 GB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001445/0.1106, allocations: 319.8 kB / 0.5118 GB, free: 488 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.775e-05/0.1107, allocations: 197.9 kB / 0.512 GB, free: 264 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.167e-05/0.1108, allocations: 184.3 kB / 0.5121 GB, free: 72 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001148/0.1109, allocations: 108.9 kB / 0.5122 GB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.148e-05/0.111, allocations: 184.2 kB / 0.5124 GB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.407e-05/0.111, allocations: 105 kB / 0.5125 GB, free: 15.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001349/0.1112, allocations: 172.1 kB / 0.5127 GB, free: 15.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1112, allocations: 0 / 0.5127 GB, free: 15.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002653/0.1114, allocations: 4 kB / 0.5127 GB, free: 15.49 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (0): * Single equations (assignments): 0 * 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.0004248/0.1119, allocations: 0.8264 MB / 0.5135 GB, free: 14.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 4.165e-05/0.1119, allocations: 0 / 0.5135 GB, free: 14.63 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.1119, allocations: 0 / 0.5135 GB, free: 14.63 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.968e-06/0.1119, allocations: 3.938 kB / 0.5135 GB, free: 14.63 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004205/0.1124, allocations: 457.2 kB / 0.5139 GB, free: 14.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001783/0.1142, allocations: 2.054 MB / 0.5159 GB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002957/0.1145, allocations: 0.7119 MB / 0.5166 GB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.726e-05/0.1145, allocations: 4 kB / 0.5166 GB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.476e-05/0.1145, allocations: 23.44 kB / 0.5166 GB, free: 11.28 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1146, allocations: 0 / 0.5166 GB, free: 11.28 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01887/0.1334, allocations: 1.87 MB / 0.5185 GB, free: 9.488 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.652/7.785, allocations: 10.28 kB / 0.5185 GB, free: 9.48 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.VariablesTypes.VectorsMatrices2.pipe ; mkfifo HanserModelica_HanserModelica.VariablesTypes.VectorsMatrices2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.VariablesTypes.VectorsMatrices2.pipe >> ../files/HanserModelica_HanserModelica.VariablesTypes.VectorsMatrices2.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.VariablesTypes.VectorsMatrices2_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 HanserModelica_HanserModelica_VariablesTypes_VectorsMatrices2.fmu > HanserModelica_HanserModelica.VariablesTypes.VectorsMatrices2.pipe 2>&1)