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.001215/0.001215, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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 / 238.9 MB, free: 4.719 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.00123/0.00123, allocations: 188.5 kB / 289.1 MB, free: 2.465 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03365/0.03365, allocations: 8.797 MB / 348.1 MB, free: 4.863 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 76.81 kB / 410.5 MB, free: 42.36 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.072/0.07346, allocations: 51.55 MB / 462.1 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.002191/0.07569, allocations: 1.323 MB / 463.4 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 3.805e-05/0.07574, allocations: 8 kB / 463.4 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.144e-05/0.07577, allocations: 0 / 463.4 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.768e-05/0.07582, allocations: 7.938 kB / 463.4 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.265e-05/0.07588, allocations: 0 / 463.4 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.188e-05/0.0759, allocations: 0 / 463.4 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 4.184e-05/0.07594, allocations: 4 kB / 463.4 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.018e-05/0.076, allocations: 3.984 kB / 463.4 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.238e-05/0.07603, allocations: 15.92 kB / 463.4 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.954e-05/0.07606, allocations: 3.938 kB / 463.4 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.009e-05/0.07608, allocations: 0 / 463.4 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.668e-06/0.07609, allocations: 4 kB / 463.4 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.153e-05/0.0761, allocations: 0 / 463.4 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.148e-05/0.07613, allocations: 7.938 kB / 463.4 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 3.864e-05/0.07617, allocations: 3.984 kB / 463.4 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.07618, allocations: 0 / 463.4 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.07618, allocations: 0 / 463.4 MB, free: 13.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.467e-06/0.07619, allocations: 0 / 463.4 MB, free: 13.34 MB / 302.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.0003082/0.0765, allocations: 319.5 kB / 463.8 MB, free: 12.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.07655, allocations: 8.031 kB / 463.8 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.845e-05/0.0766, allocations: 30.75 kB / 463.8 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.848e-05/0.07662, allocations: 12.92 kB / 463.8 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001217/0.07675, allocations: 164.6 kB / 464 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.807e-06/0.07677, allocations: 4.312 kB / 464 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.374e-06/0.07678, allocations: 384 / 464 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001262/0.07691, allocations: 47.92 kB / 464 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.07692, allocations: 7.922 kB / 464 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.909e-06/0.07693, allocations: 0 / 464 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.07694, allocations: 4 kB / 464 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.273e-05/0.07696, allocations: 4 kB / 464 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003402/0.07731, allocations: 479.6 kB / 464.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000112/0.07743, allocations: 173 kB / 464.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.974e-05/0.07746, allocations: 80.14 kB / 464.8 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.07749, allocations: 79.28 kB / 464.8 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.732e-05/0.0776, allocations: 109.8 kB / 464.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 7.41e-07/0.0776, allocations: 0 / 464.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 6.297e-05/0.07767, allocations: 33.61 kB / 465 MB, free: 11.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.251e-05/0.07774, allocations: 130.6 kB / 465.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.216e-05/0.07781, allocations: 105.8 kB / 465.2 MB, free: 11.37 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.082e-05/0.07783, allocations: 29.7 kB / 465.2 MB, free: 11.33 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.161e-05/0.07789, allocations: 84.05 kB / 465.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.364e-06/0.07789, allocations: 0 / 465.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.514e-05/0.07792, allocations: 17.72 kB / 465.3 MB, free: 11.22 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.487e-05/0.07802, allocations: 314.8 kB / 465.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.855e-06/0.07804, allocations: 0 / 465.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.348e-05/0.07805, allocations: 13.72 kB / 465.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.964e-05/0.07809, allocations: 25.72 kB / 465.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.07809, allocations: 0 / 465.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.628e-05/0.07818, allocations: 41.64 kB / 465.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.07821, allocations: 11.98 kB / 465.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.067e-06/0.07821, allocations: 0 / 465.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.817e-06/0.07823, allocations: 0 / 465.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.139e-05/0.07827, allocations: 4 kB / 465.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.593e-05/0.07829, allocations: 4.234 kB / 465.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.917e-05/0.07832, allocations: 4.062 kB / 465.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.971e-06/0.07833, allocations: 4 kB / 465.7 MB, free: 10.78 MB / 302.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 7.746e-05/0.07841, allocations: 197.6 kB / 465.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.631e-05/0.07847, allocations: 101 kB / 466 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.207e-05/0.07852, allocations: 120 kB / 466.2 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.389e-05/0.07858, allocations: 180.2 kB / 466.3 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.207e-05/0.07864, allocations: 180.3 kB / 466.5 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-05/0.0787, allocations: 180.2 kB / 466.7 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001976/0.0789, allocations: 409.2 kB / 467.1 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.869e-05/0.07893, allocations: 101 kB / 467.2 MB, free: 9.234 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.9e-05/0.07897, allocations: 108.9 kB / 467.3 MB, free: 9.121 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-05/0.07903, allocations: 180.3 kB / 467.5 MB, free: 8.938 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.57e-05/0.07909, allocations: 184.2 kB / 467.6 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.574e-05/0.07915, allocations: 180.3 kB / 467.8 MB, free: 8.566 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.893e-05/0.0792, allocations: 184.3 kB / 468 MB, free: 8.379 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001129/0.07932, allocations: 303.9 kB / 468.3 MB, free: 8.059 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.746e-05/0.07939, allocations: 194 kB / 468.5 MB, free: 7.844 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.617e-05/0.07946, allocations: 184.3 kB / 468.7 MB, free: 7.656 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.426e-05/0.07953, allocations: 101 kB / 468.8 MB, free: 7.551 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.673e-05/0.07961, allocations: 188.1 kB / 468.9 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.946e-05/0.07964, allocations: 105 kB / 469 MB, free: 7.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.743e-05/0.07969, allocations: 83.28 kB / 469.1 MB, free: 7.168 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.07969, allocations: 4 kB / 469.1 MB, free: 7.164 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002076/0.0799, allocations: 4 kB / 469.1 MB, free: 7.16 MB / 302.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.0003891/0.0803, allocations: 0.8047 MB / 469.9 MB, free: 6.324 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 5.148e-05/0.08036, allocations: 4 kB / 469.9 MB, free: 6.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.08037, allocations: 4.125 kB / 470 MB, free: 6.316 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.484e-06/0.08037, allocations: 3.938 kB / 470 MB, free: 6.312 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003741/0.08075, allocations: 0.5146 MB / 470.5 MB, free: 5.793 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008953/0.08165, allocations: 1.293 MB / 471.8 MB, free: 4.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002182/0.08188, allocations: 0.6692 MB / 472.4 MB, free: 3.715 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.901e-05/0.08191, allocations: 3.984 kB / 472.4 MB, free: 3.711 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.403e-05/0.08194, allocations: 11.44 kB / 472.4 MB, free: 3.699 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.08194, allocations: 0 / 472.4 MB, free: 3.699 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009762/0.09171, allocations: 0.8454 MB / 473.3 MB, free: 2.93 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001833/0.09192, allocations: 196.3 kB / 473.5 MB, free: 2.668 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.61/1.702, allocations: 0 / 473.5 MB, free: 2.668 MB / 302.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)