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.007992/0.007997, allocations: 99.12 kB / 15.73 MB, free: 6.449 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.517/1.517, allocations: 222.9 MB / 239.4 MB, free: 4.52 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.002134/0.002134, allocations: 184.5 kB / 289.7 MB, free: 2.227 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.035/0.035, allocations: 8.802 MB / 348.7 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001985/0.001986, allocations: 75.88 kB / 463.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.117, allocations: 51.56 MB / 0.5029 GB, free: 9.992 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.TestVector2D): time 0.002922/0.1199, allocations: 1.201 MB / 0.5041 GB, free: 8.781 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002608/0.1202, allocations: 55.78 kB / 0.5041 GB, free: 8.727 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.981e-05/0.1203, allocations: 4 kB / 0.5041 GB, free: 8.723 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001172/0.1204, allocations: 7.938 kB / 0.5041 GB, free: 8.715 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001531/0.1206, allocations: 7.922 kB / 0.5041 GB, free: 8.707 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.763e-05/0.1207, allocations: 0 / 0.5041 GB, free: 8.707 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.786e-05/0.1208, allocations: 23.86 kB / 0.5042 GB, free: 8.684 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.543e-05/0.1208, allocations: 4 kB / 0.5042 GB, free: 8.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.968e-05/0.1208, allocations: 7.984 kB / 0.5042 GB, free: 8.672 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.142e-05/0.1209, allocations: 11.94 kB / 0.5042 GB, free: 8.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.641e-05/0.1209, allocations: 0 / 0.5042 GB, free: 8.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.015e-06/0.121, allocations: 0 / 0.5042 GB, free: 8.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.715e-05/0.121, allocations: 4 kB / 0.5042 GB, free: 8.656 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.528e-05/0.121, allocations: 4 kB / 0.5042 GB, free: 8.652 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.705e-05/0.1211, allocations: 24.12 kB / 0.5042 GB, free: 8.629 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1211, allocations: 0 / 0.5042 GB, free: 8.629 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1211, allocations: 0 / 0.5042 GB, free: 8.629 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.041e-05/0.1211, allocations: 0 / 0.5042 GB, free: 8.629 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.0004297/0.1216, allocations: 323.5 kB / 0.5045 GB, free: 8.262 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/0.1216, allocations: 8.031 kB / 0.5045 GB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.679e-05/0.1217, allocations: 38.75 kB / 0.5046 GB, free: 8.207 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.686e-05/0.1217, allocations: 0.9375 kB / 0.5046 GB, free: 8.207 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000158/0.1219, allocations: 172.3 kB / 0.5047 GB, free: 8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.527e-05/0.1219, allocations: 8.312 kB / 0.5047 GB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.056e-05/0.1219, allocations: 384 / 0.5047 GB, free: 7.992 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001053/0.122, allocations: 43.98 kB / 0.5048 GB, free: 7.938 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.122, allocations: 3.938 kB / 0.5048 GB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.897e-06/0.1221, allocations: 0 / 0.5048 GB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.1221, allocations: 3.938 kB / 0.5048 GB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.118e-05/0.1221, allocations: 4 kB / 0.5048 GB, free: 7.926 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003238/0.1224, allocations: 174.5 kB / 0.505 GB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.035e-05/0.1225, allocations: 29.16 kB / 0.505 GB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.257e-05/0.1225, allocations: 21.78 kB / 0.505 GB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.09e-05/0.1225, allocations: 0 / 0.505 GB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.114e-05/0.1226, allocations: 42.5 kB / 0.5051 GB, free: 7.578 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.92e-07/0.1226, allocations: 4 kB / 0.5051 GB, free: 7.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001701/0.1228, allocations: 49.56 kB / 0.5051 GB, free: 7.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.318e-05/0.1228, allocations: 77.11 kB / 0.5052 GB, free: 7.426 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.613e-05/0.1229, allocations: 105.8 kB / 0.5053 GB, free: 7.312 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.292e-05/0.1229, allocations: 25.7 kB / 0.5053 GB, free: 7.281 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.726e-05/0.123, allocations: 80.14 kB / 0.5054 GB, free: 7.199 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.468e-05/0.123, allocations: 8.203 kB / 0.5054 GB, free: 7.191 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.758e-05/0.1231, allocations: 17.72 kB / 0.5054 GB, free: 7.168 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001288/0.1232, allocations: 318.8 kB / 0.5057 GB, free: 6.848 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.722e-05/0.1232, allocations: 4 kB / 0.5057 GB, free: 6.844 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.919e-05/0.1233, allocations: 31.44 kB / 0.5057 GB, free: 6.801 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.191e-05/0.1233, allocations: 39.38 kB / 0.5058 GB, free: 6.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1233, allocations: 0 / 0.5058 GB, free: 6.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.651e-05/0.1234, allocations: 61.58 kB / 0.5058 GB, free: 6.684 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.1234, allocations: 11.94 kB / 0.5059 GB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.1235, allocations: 0 / 0.5059 GB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.1235, allocations: 288 / 0.5059 GB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.227e-05/0.1235, allocations: 20.05 kB / 0.5059 GB, free: 6.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.1235, allocations: 0 / 0.5059 GB, free: 6.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.381e-05/0.1236, allocations: 3.938 kB / 0.5059 GB, free: 6.648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.121e-06/0.1236, allocations: 4 kB / 0.5059 GB, free: 6.645 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 8.166e-05/0.1237, allocations: 117.7 kB / 0.506 GB, free: 6.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.41e-05/0.1237, allocations: 7.922 kB / 0.506 GB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.095e-05/0.1237, allocations: 7.125 kB / 0.506 GB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.1237, allocations: 0 / 0.506 GB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.1237, allocations: 4 kB / 0.506 GB, free: 6.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.905e-06/0.1238, allocations: 4 kB / 0.506 GB, free: 6.496 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001789/0.1239, allocations: 161.7 kB / 0.5062 GB, free: 6.289 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.124, allocations: 0 / 0.5062 GB, free: 6.289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.7e-05/0.124, allocations: 4 kB / 0.5062 GB, free: 6.285 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.124, allocations: 3.938 kB / 0.5062 GB, free: 6.281 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.124, allocations: 0 / 0.5062 GB, free: 6.281 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/0.124, allocations: 0 / 0.5062 GB, free: 6.281 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.124, allocations: 7.875 kB / 0.5062 GB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001366/0.1242, allocations: 81.94 kB / 0.5063 GB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.974e-05/0.1242, allocations: 81.05 kB / 0.5063 GB, free: 6.074 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.522e-05/0.1242, allocations: 3.938 kB / 0.5063 GB, free: 6.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.755e-05/0.1243, allocations: 4.031 kB / 0.5063 GB, free: 6.066 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.101e-05/0.1243, allocations: 7.984 kB / 0.5064 GB, free: 6.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-06/0.1243, allocations: 0 / 0.5064 GB, free: 6.059 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.407e-05/0.1244, allocations: 79.28 kB / 0.5064 GB, free: 5.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1244, allocations: 0 / 0.5064 GB, free: 5.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000196/0.1246, allocations: 8.094 kB / 0.5064 GB, free: 5.973 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.0003713/0.1249, allocations: 0.6093 MB / 0.507 GB, free: 5.328 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.843e-05/0.1251, allocations: 24.2 kB / 0.5071 GB, free: 5.305 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1251, allocations: 0 / 0.5071 GB, free: 5.305 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.164e-05/0.1251, allocations: 4 kB / 0.5071 GB, free: 5.301 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001579/0.1252, allocations: 4 kB / 0.5071 GB, free: 5.297 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001055/0.1263, allocations: 1.196 MB / 0.5082 GB, free: 3.996 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002464/0.1266, allocations: 0.6805 MB / 0.5089 GB, free: 3.289 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.466e-05/0.1266, allocations: 0 / 0.5089 GB, free: 3.289 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.707e-05/0.1266, allocations: 15.44 kB / 0.5089 GB, free: 3.273 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1267, allocations: 0 / 0.5089 GB, free: 3.273 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01938/0.146, allocations: 1.172 MB / 0.5101 GB, free: 2.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.751/7.897, allocations: 2.812 kB / 0.5101 GB, free: 2.16 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)