Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Classes.TestVector2D.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.Classes.TestVector2D,fileNamePrefix="HanserModelica_HanserModelica_Classes_TestVector2D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Classes.TestVector2D,fileNamePrefix="HanserModelica_HanserModelica_Classes_TestVector2D",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.005284/0.005284, allocations: 98.7 kB / 15.73 MB, free: 6.055 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.513/1.513, allocations: 222.9 MB / 239.4 MB, free: 4.539 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.001685/0.001685, allocations: 188.5 kB / 289.7 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03759/0.03759, allocations: 8.801 MB / 348.7 MB, free: 4.594 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00236/0.00236, allocations: 79.88 kB / 463.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1031, allocations: 51.55 MB / 0.5029 GB, free: 9.988 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.TestVector2D): time 0.002176/0.1053, allocations: 1.2 MB / 0.5041 GB, free: 8.777 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002052/0.1056, allocations: 55.77 kB / 0.5041 GB, free: 8.723 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.859e-05/0.1056, allocations: 0 / 0.5041 GB, free: 8.723 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 8.616e-05/0.1057, allocations: 11.94 kB / 0.5041 GB, free: 8.711 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001309/0.1059, allocations: 11.92 kB / 0.5041 GB, free: 8.699 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.823e-05/0.1059, allocations: 0 / 0.5041 GB, free: 8.699 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.965e-05/0.106, allocations: 19.92 kB / 0.5042 GB, free: 8.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.52e-05/0.106, allocations: 4 kB / 0.5042 GB, free: 8.676 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.016e-05/0.106, allocations: 7.938 kB / 0.5042 GB, free: 8.668 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.661e-05/0.1061, allocations: 11.92 kB / 0.5042 GB, free: 8.656 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.641e-05/0.1061, allocations: 0 / 0.5042 GB, free: 8.656 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.725e-06/0.1061, allocations: 0 / 0.5042 GB, free: 8.656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.08e-05/0.1062, allocations: 8 kB / 0.5042 GB, free: 8.648 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.001e-05/0.1062, allocations: 3.984 kB / 0.5042 GB, free: 8.645 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.616e-05/0.1063, allocations: 24.14 kB / 0.5042 GB, free: 8.621 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.1063, allocations: 0 / 0.5042 GB, free: 8.621 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1063, allocations: 0 / 0.5042 GB, free: 8.621 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.1063, allocations: 0 / 0.5042 GB, free: 8.621 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.000403/0.1067, allocations: 323.5 kB / 0.5045 GB, free: 8.254 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.1067, allocations: 8.031 kB / 0.5045 GB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.289e-05/0.1068, allocations: 34.75 kB / 0.5046 GB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.952e-05/0.1068, allocations: 0.9375 kB / 0.5046 GB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001491/0.1069, allocations: 168.3 kB / 0.5047 GB, free: 8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.107, allocations: 8.375 kB / 0.5047 GB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.357e-05/0.107, allocations: 384 / 0.5047 GB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.544e-05/0.1071, allocations: 47.91 kB / 0.5048 GB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.1071, allocations: 3.938 kB / 0.5048 GB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.973e-06/0.1071, allocations: 0 / 0.5048 GB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.1071, allocations: 0 / 0.5048 GB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.995e-05/0.1072, allocations: 8 kB / 0.5048 GB, free: 7.922 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002922/0.1075, allocations: 166.6 kB / 0.505 GB, free: 7.707 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.717e-05/0.1075, allocations: 33.22 kB / 0.505 GB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.653e-05/0.1076, allocations: 21.7 kB / 0.505 GB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.102e-05/0.1076, allocations: 3.938 kB / 0.505 GB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/0.1076, allocations: 34.56 kB / 0.505 GB, free: 7.582 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.1076, allocations: 4 kB / 0.505 GB, free: 7.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001284/0.1077, allocations: 41.58 kB / 0.5051 GB, free: 7.531 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.935e-05/0.1078, allocations: 85.09 kB / 0.5052 GB, free: 7.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.283e-05/0.1079, allocations: 97.86 kB / 0.5053 GB, free: 7.324 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.151e-05/0.1079, allocations: 29.7 kB / 0.5053 GB, free: 7.289 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.239e-05/0.108, allocations: 88.02 kB / 0.5054 GB, free: 7.199 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.055e-05/0.108, allocations: 7.938 kB / 0.5054 GB, free: 7.191 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.253e-05/0.108, allocations: 21.97 kB / 0.5054 GB, free: 7.164 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.1082, allocations: 314.8 kB / 0.5057 GB, free: 6.848 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.613e-05/0.1082, allocations: 4 kB / 0.5057 GB, free: 6.844 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.49e-05/0.1082, allocations: 35.42 kB / 0.5057 GB, free: 6.797 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.698e-05/0.1083, allocations: 43.38 kB / 0.5058 GB, free: 6.742 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1083, allocations: 0 / 0.5058 GB, free: 6.742 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.274e-05/0.1084, allocations: 57.58 kB / 0.5058 GB, free: 6.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.1084, allocations: 11.94 kB / 0.5058 GB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.488e-06/0.1084, allocations: 0 / 0.5058 GB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.1085, allocations: 0 / 0.5058 GB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.871e-05/0.1085, allocations: 8 kB / 0.5059 GB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.1085, allocations: 4.062 kB / 0.5059 GB, free: 6.656 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.319e-05/0.1085, allocations: 11.94 kB / 0.5059 GB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.963e-06/0.1086, allocations: 7.984 kB / 0.5059 GB, free: 6.637 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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 7.771e-05/0.1086, allocations: 117.7 kB / 0.506 GB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.077e-05/0.1087, allocations: 4.219 kB / 0.506 GB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.017e-05/0.1087, allocations: 11.11 kB / 0.506 GB, free: 6.496 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.1087, allocations: 3.984 kB / 0.506 GB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.1087, allocations: 4 kB / 0.506 GB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.1087, allocations: 0 / 0.506 GB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001692/0.1089, allocations: 157.7 kB / 0.5062 GB, free: 6.285 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1089, allocations: 0 / 0.5062 GB, free: 6.285 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.677e-05/0.1089, allocations: 4 kB / 0.5062 GB, free: 6.281 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.918e-06/0.109, allocations: 3.938 kB / 0.5062 GB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.657e-06/0.109, allocations: 4 kB / 0.5062 GB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.109, allocations: 3.984 kB / 0.5062 GB, free: 6.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.109, allocations: 0 / 0.5062 GB, free: 6.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000123/0.1091, allocations: 89.81 kB / 0.5063 GB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.142e-05/0.1092, allocations: 77.11 kB / 0.5063 GB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.467e-05/0.1092, allocations: 3.938 kB / 0.5063 GB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.576e-05/0.1092, allocations: 4.031 kB / 0.5063 GB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.002e-05/0.1092, allocations: 0 / 0.5063 GB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-06/0.1092, allocations: 0 / 0.5063 GB, free: 6.059 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.435e-05/0.1093, allocations: 87.27 kB / 0.5064 GB, free: 5.973 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1093, allocations: 0 / 0.5064 GB, free: 5.973 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001863/0.1095, allocations: 4 kB / 0.5064 GB, free: 5.969 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (v.y,v.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 (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 Backend phase and start with SimCode phase: time 0.0003983/0.1099, allocations: 0.6133 MB / 0.507 GB, free: 5.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.977e-05/0.11, allocations: 15.94 kB / 0.507 GB, free: 5.305 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.11, allocations: 4.281 kB / 0.507 GB, free: 5.301 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.014e-05/0.11, allocations: 8 kB / 0.5071 GB, free: 5.293 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000142/0.1102, allocations: 7.531 kB / 0.5071 GB, free: 5.289 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001063/0.1112, allocations: 1.2 MB / 0.5082 GB, free: 3.984 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002949/0.1115, allocations: 0.6805 MB / 0.5089 GB, free: 3.277 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.099e-05/0.1116, allocations: 4 kB / 0.5089 GB, free: 3.273 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.024e-05/0.1116, allocations: 11.44 kB / 0.5089 GB, free: 3.262 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1116, allocations: 0 / 0.5089 GB, free: 3.262 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02348/0.1351, allocations: 1.166 MB / 0.5101 GB, free: 2.152 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.995/8.13, allocations: 5.906 kB / 0.5101 GB, free: 2.148 MB / 350.1 MB (rm -f HanserModelica_HanserModelica.Classes.TestVector2D.pipe ; mkfifo HanserModelica_HanserModelica.Classes.TestVector2D.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Classes.TestVector2D.pipe >> ../files/HanserModelica_HanserModelica.Classes.TestVector2D.sim & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.Classes.TestVector2D_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_Classes_TestVector2D.fmu > HanserModelica_HanserModelica.Classes.TestVector2D.pipe 2>&1)