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.008863/0.008863, allocations: 99.31 kB / 15.73 MB, free: 6.047 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.408/1.408, allocations: 222.9 MB / 239.4 MB, free: 4.555 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.001655/0.001654, allocations: 188.5 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03637/0.03637, allocations: 8.807 MB / 348.7 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001773/0.001773, allocations: 79.88 kB / 463.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1114, allocations: 51.56 MB / 0.5029 GB, free: 10.03 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.TestVector2D): time 0.002822/0.1142, allocations: 1.2 MB / 0.5041 GB, free: 8.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002899/0.1146, allocations: 55.77 kB / 0.5041 GB, free: 8.766 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.957e-05/0.1146, allocations: 4 kB / 0.5041 GB, free: 8.762 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001087/0.1148, allocations: 11.94 kB / 0.5041 GB, free: 8.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001522/0.1149, allocations: 3.938 kB / 0.5041 GB, free: 8.746 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.159e-05/0.115, allocations: 3.984 kB / 0.5041 GB, free: 8.742 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.333e-05/0.1151, allocations: 23.86 kB / 0.5042 GB, free: 8.719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.725e-05/0.1152, allocations: 3.984 kB / 0.5042 GB, free: 8.715 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.308e-05/0.1152, allocations: 7.984 kB / 0.5042 GB, free: 8.707 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.553e-05/0.1153, allocations: 7.938 kB / 0.5042 GB, free: 8.699 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.513e-05/0.1153, allocations: 4 kB / 0.5042 GB, free: 8.695 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.327e-06/0.1153, allocations: 0 / 0.5042 GB, free: 8.695 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.852e-05/0.1153, allocations: 4 kB / 0.5042 GB, free: 8.691 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.817e-05/0.1154, allocations: 7.938 kB / 0.5042 GB, free: 8.684 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.917e-05/0.1155, allocations: 19.97 kB / 0.5042 GB, free: 8.664 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.1155, allocations: 0 / 0.5042 GB, free: 8.664 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1155, allocations: 0 / 0.5042 GB, free: 8.664 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.1155, allocations: 0 / 0.5042 GB, free: 8.664 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.0004675/0.116, allocations: 319.5 kB / 0.5045 GB, free: 8.301 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.116, allocations: 12.03 kB / 0.5045 GB, free: 8.289 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.956e-05/0.116, allocations: 30.75 kB / 0.5046 GB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.649e-05/0.1161, allocations: 4.938 kB / 0.5046 GB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.1162, allocations: 176.5 kB / 0.5047 GB, free: 8.035 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/0.1163, allocations: 384 / 0.5047 GB, free: 8.035 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.096e-05/0.1163, allocations: 4.375 kB / 0.5047 GB, free: 8.031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.43e-05/0.1164, allocations: 43.92 kB / 0.5048 GB, free: 7.977 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.337e-06/0.1164, allocations: 3.938 kB / 0.5048 GB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.725e-06/0.1164, allocations: 0 / 0.5048 GB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.1164, allocations: 4 kB / 0.5048 GB, free: 7.969 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.056e-05/0.1164, allocations: 8 kB / 0.5048 GB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002769/0.1167, allocations: 166.6 kB / 0.505 GB, free: 7.746 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.938e-05/0.1168, allocations: 37.03 kB / 0.505 GB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.412e-05/0.1168, allocations: 17.84 kB / 0.505 GB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.103e-06/0.1168, allocations: 4 kB / 0.505 GB, free: 7.664 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.904e-05/0.1168, allocations: 34.5 kB / 0.505 GB, free: 7.621 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.1169, allocations: 0 / 0.505 GB, free: 7.621 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001411/0.117, allocations: 49.53 kB / 0.5051 GB, free: 7.566 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.22e-05/0.117, allocations: 85.05 kB / 0.5052 GB, free: 7.465 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.234e-05/0.1171, allocations: 101.8 kB / 0.5053 GB, free: 7.355 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.355e-05/0.1172, allocations: 33.95 kB / 0.5053 GB, free: 7.316 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.162e-05/0.1172, allocations: 80.14 kB / 0.5054 GB, free: 7.234 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.333e-05/0.1172, allocations: 3.906 kB / 0.5054 GB, free: 7.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.295e-05/0.1173, allocations: 17.72 kB / 0.5054 GB, free: 7.207 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.1174, allocations: 314.8 kB / 0.5057 GB, free: 6.891 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.674e-05/0.1174, allocations: 8 kB / 0.5057 GB, free: 6.883 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.503e-05/0.1174, allocations: 23.44 kB / 0.5057 GB, free: 6.848 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.141e-05/0.1175, allocations: 47.38 kB / 0.5058 GB, free: 6.789 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.1175, allocations: 0 / 0.5058 GB, free: 6.789 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.256e-05/0.1176, allocations: 53.62 kB / 0.5058 GB, free: 6.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.1176, allocations: 13.62 kB / 0.5058 GB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.1176, allocations: 4 kB / 0.5058 GB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.1176, allocations: 0 / 0.5058 GB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.075e-05/0.1177, allocations: 11.94 kB / 0.5059 GB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.1177, allocations: 3.984 kB / 0.5059 GB, free: 6.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.459e-05/0.1177, allocations: 4 kB / 0.5059 GB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.686e-06/0.1178, allocations: 4 kB / 0.5059 GB, free: 6.691 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.794e-05/0.1178, allocations: 113.7 kB / 0.506 GB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.42e-05/0.1179, allocations: 11.84 kB / 0.506 GB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.578e-05/0.1179, allocations: 11.12 kB / 0.506 GB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.1179, allocations: 0 / 0.506 GB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.1179, allocations: 4 kB / 0.506 GB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.1179, allocations: 0 / 0.506 GB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001684/0.1181, allocations: 153.7 kB / 0.5061 GB, free: 6.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1181, allocations: 4 kB / 0.5061 GB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.788e-05/0.1181, allocations: 11.94 kB / 0.5062 GB, free: 6.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.1182, allocations: 4.219 kB / 0.5062 GB, free: 6.324 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.1182, allocations: 4 kB / 0.5062 GB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.1182, allocations: 3.938 kB / 0.5062 GB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1182, allocations: 0 / 0.5062 GB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001378/0.1183, allocations: 85.91 kB / 0.5063 GB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.946e-05/0.1184, allocations: 77.11 kB / 0.5063 GB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.739e-05/0.1184, allocations: 3.938 kB / 0.5063 GB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.573e-05/0.1184, allocations: 0 / 0.5063 GB, free: 6.113 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.688e-05/0.1185, allocations: 4.031 kB / 0.5063 GB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.1185, allocations: 3.984 kB / 0.5063 GB, free: 6.105 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.475e-05/0.1185, allocations: 87.38 kB / 0.5064 GB, free: 6.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1185, allocations: 0 / 0.5064 GB, free: 6.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001937/0.1187, allocations: 4 kB / 0.5064 GB, free: 6.016 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.0004237/0.1192, allocations: 0.6172 MB / 0.507 GB, free: 5.363 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001063/0.1193, allocations: 19.92 kB / 0.507 GB, free: 5.344 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.1193, allocations: 0 / 0.507 GB, free: 5.344 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.247e-05/0.1193, allocations: 4 kB / 0.507 GB, free: 5.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001575/0.1195, allocations: 4 kB / 0.5071 GB, free: 5.336 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001133/0.1206, allocations: 1.2 MB / 0.5082 GB, free: 4.031 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002623/0.1209, allocations: 0.6766 MB / 0.5089 GB, free: 3.328 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.81e-05/0.1209, allocations: 7.984 kB / 0.5089 GB, free: 3.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.55e-05/0.121, allocations: 11.44 kB / 0.5089 GB, free: 3.309 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.121, allocations: 4 kB / 0.5089 GB, free: 3.305 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01803/0.139, allocations: 1.164 MB / 0.51 GB, free: 2.195 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.332/7.471, allocations: 14.09 kB / 0.5101 GB, free: 2.188 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Classes_TestVector2D_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Classes_TestVector2D.fmu > HanserModelica_HanserModelica.Classes.TestVector2D.pipe 2>&1)