Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Classes.MixedDeclaration.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.MixedDeclaration,fileNamePrefix="HanserModelica_HanserModelica_Classes_MixedDeclaration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Classes.MixedDeclaration,fileNamePrefix="HanserModelica_HanserModelica_Classes_MixedDeclaration",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.004767/0.004767, allocations: 96.7 kB / 15.73 MB, free: 6.051 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.349/1.349, allocations: 222.9 MB / 239.4 MB, free: 4.559 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.001369/0.001369, allocations: 196.5 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03545/0.03545, allocations: 8.81 MB / 348.7 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002172/0.002172, allocations: 75.88 kB / 463.4 MB, free: 13.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09033/0.09251, allocations: 51.57 MB / 0.5029 GB, free: 10.04 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.002236/0.09478, allocations: 1.264 MB / 0.5041 GB, free: 8.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 3.982e-05/0.09484, allocations: 0 / 0.5041 GB, free: 8.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.062e-05/0.09488, allocations: 4 kB / 0.5041 GB, free: 8.766 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.23e-05/0.09492, allocations: 3.938 kB / 0.5041 GB, free: 8.762 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.999e-05/0.09499, allocations: 0 / 0.5041 GB, free: 8.762 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.671e-05/0.09501, allocations: 4 kB / 0.5041 GB, free: 8.758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.2e-05/0.09507, allocations: 7.938 kB / 0.5041 GB, free: 8.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.532e-05/0.09514, allocations: 7.984 kB / 0.5042 GB, free: 8.742 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.992e-05/0.09517, allocations: 7.922 kB / 0.5042 GB, free: 8.734 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.287e-05/0.0952, allocations: 4 kB / 0.5042 GB, free: 8.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.151e-05/0.09522, allocations: 0 / 0.5042 GB, free: 8.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.559e-06/0.09523, allocations: 0 / 0.5042 GB, free: 8.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.388e-05/0.09525, allocations: 8 kB / 0.5042 GB, free: 8.723 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.107e-05/0.09528, allocations: 7.938 kB / 0.5042 GB, free: 8.715 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 4.886e-05/0.09533, allocations: 3.938 kB / 0.5042 GB, free: 8.711 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.09534, allocations: 0 / 0.5042 GB, free: 8.711 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.09535, allocations: 3.938 kB / 0.5042 GB, free: 8.707 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.09535, allocations: 0 / 0.5042 GB, free: 8.707 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.0003637/0.09572, allocations: 327.5 kB / 0.5045 GB, free: 8.336 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.09576, allocations: 8.031 kB / 0.5045 GB, free: 8.328 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.876e-05/0.0958, allocations: 30.75 kB / 0.5045 GB, free: 8.289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.776e-05/0.09582, allocations: 4.938 kB / 0.5045 GB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001459/0.09597, allocations: 168.4 kB / 0.5047 GB, free: 8.082 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.532e-06/0.09599, allocations: 384 / 0.5047 GB, free: 8.082 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.436e-06/0.096, allocations: 384 / 0.5047 GB, free: 8.082 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.739e-05/0.09608, allocations: 47.92 kB / 0.5048 GB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.0961, allocations: 3.938 kB / 0.5048 GB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.531e-06/0.09611, allocations: 0 / 0.5048 GB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.09611, allocations: 4 kB / 0.5048 GB, free: 8.016 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.327e-05/0.09613, allocations: 0 / 0.5048 GB, free: 8.016 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003584/0.0965, allocations: 487.5 kB / 0.5052 GB, free: 7.484 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.472e-05/0.09659, allocations: 165.1 kB / 0.5054 GB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.512e-05/0.09663, allocations: 80.14 kB / 0.5055 GB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.362e-05/0.09667, allocations: 79.28 kB / 0.5055 GB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.641e-05/0.09672, allocations: 105.8 kB / 0.5056 GB, free: 7.039 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 9.42e-07/0.09673, allocations: 0 / 0.5056 GB, free: 7.039 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 6.938e-05/0.0968, allocations: 37.64 kB / 0.5057 GB, free: 6.996 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.332e-05/0.09687, allocations: 126.7 kB / 0.5058 GB, free: 6.859 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.593e-05/0.09697, allocations: 109.8 kB / 0.5059 GB, free: 6.742 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.361e-05/0.09699, allocations: 25.7 kB / 0.5059 GB, free: 6.711 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.318e-05/0.09705, allocations: 88.09 kB / 0.506 GB, free: 6.621 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.958e-06/0.09706, allocations: 7.922 kB / 0.506 GB, free: 6.613 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.974e-05/0.09709, allocations: 17.72 kB / 0.506 GB, free: 6.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.09722, allocations: 314.8 kB / 0.5063 GB, free: 6.273 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.145e-06/0.09723, allocations: 0 / 0.5063 GB, free: 6.273 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.484e-05/0.09725, allocations: 13.72 kB / 0.5063 GB, free: 6.254 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.639e-05/0.09729, allocations: 29.66 kB / 0.5064 GB, free: 6.219 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.0973, allocations: 0 / 0.5064 GB, free: 6.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.118e-05/0.0974, allocations: 37.69 kB / 0.5064 GB, free: 6.176 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.09742, allocations: 8 kB / 0.5064 GB, free: 6.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.09743, allocations: 0 / 0.5064 GB, free: 6.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.09745, allocations: 7.922 kB / 0.5064 GB, free: 6.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.203e-05/0.09749, allocations: 11.94 kB / 0.5064 GB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.0975, allocations: 0 / 0.5064 GB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.107e-05/0.09753, allocations: 4.062 kB / 0.5064 GB, free: 6.145 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.907e-06/0.09754, allocations: 0 / 0.5064 GB, free: 6.145 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 0.0001031/0.09764, allocations: 196.9 kB / 0.5066 GB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.453e-05/0.09771, allocations: 104.9 kB / 0.5067 GB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.671e-05/0.09777, allocations: 112 kB / 0.5068 GB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.211e-05/0.09785, allocations: 184.2 kB / 0.507 GB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.3e-05/0.09793, allocations: 180.3 kB / 0.5072 GB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.592e-05/0.09801, allocations: 180.2 kB / 0.5074 GB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002507/0.09827, allocations: 413.2 kB / 0.5077 GB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.197e-05/0.09831, allocations: 104.9 kB / 0.5078 GB, free: 4.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.481e-05/0.09836, allocations: 105 kB / 0.5079 GB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.774e-05/0.09845, allocations: 176.3 kB / 0.5081 GB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.615e-05/0.09853, allocations: 184.2 kB / 0.5083 GB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.317e-05/0.09861, allocations: 180.2 kB / 0.5085 GB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.316e-05/0.09869, allocations: 184.2 kB / 0.5086 GB, free: 3.742 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001428/0.09883, allocations: 304 kB / 0.5089 GB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.526e-05/0.09893, allocations: 190 kB / 0.5091 GB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.842e-05/0.09901, allocations: 180.3 kB / 0.5093 GB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.686e-05/0.0991, allocations: 108.9 kB / 0.5094 GB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.102e-05/0.09919, allocations: 180.5 kB / 0.5096 GB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.071e-05/0.09923, allocations: 101 kB / 0.5097 GB, free: 2.625 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.177e-05/0.09929, allocations: 91.2 kB / 0.5097 GB, free: 2.535 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.0993, allocations: 4 kB / 0.5097 GB, free: 2.531 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002148/0.09952, allocations: 4 kB / 0.5097 GB, free: 2.527 MB / 350.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.0004161/0.09994, allocations: 0.8009 MB / 0.5105 GB, free: 1.695 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.104e-05/0.1, allocations: 11.94 kB / 0.5105 GB, free: 1.684 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.1, allocations: 4.125 kB / 0.5105 GB, free: 1.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.183e-06/0.1, allocations: 3.938 kB / 0.5105 GB, free: 1.676 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003663/0.1004, allocations: 455.7 kB / 0.511 GB, free: 1.227 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009714/0.1014, allocations: 1.276 MB / 0.5122 GB, free: 15.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002912/0.1017, allocations: 0.6767 MB / 0.5129 GB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.019e-05/0.1017, allocations: 7.922 kB / 0.5129 GB, free: 15.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.823e-05/0.1017, allocations: 11.44 kB / 0.5129 GB, free: 15.14 MB / 366.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1017, allocations: 0 / 0.5129 GB, free: 15.14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02046/0.1222, allocations: 0.9588 MB / 0.5138 GB, free: 14.25 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.538/7.66, allocations: 5.203 kB / 0.5138 GB, free: 14.24 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe ; mkfifo HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe >> ../files/HanserModelica_HanserModelica.Classes.MixedDeclaration.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Classes_MixedDeclaration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Classes_MixedDeclaration.fmu > HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe 2>&1)