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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.0008751/0.0008747, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.36/1.36, allocations: 223.2 MB / 239 MB, free: 5.453 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.001065/0.001065, allocations: 176.4 kB / 290.3 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03287/0.03287, allocations: 8.78 MB / 350.2 MB, free: 4.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003564/0.0003565, allocations: 9.719 kB / 413.3 MB, free: 43.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07829/0.07866, allocations: 52.57 MB / 465.8 MB, free: 13.37 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.001169/0.07986, allocations: 0.9784 MB / 466.8 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 3.874e-05/0.07992, allocations: 7.984 kB / 466.8 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.819e-05/0.07994, allocations: 3.938 kB / 466.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.982e-05/0.07997, allocations: 7.938 kB / 466.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.063e-05/0.08003, allocations: 0 / 466.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.009e-05/0.08004, allocations: 0 / 466.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 4.252e-05/0.08009, allocations: 7.938 kB / 466.8 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.351e-05/0.08015, allocations: 7.984 kB / 466.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.473e-05/0.08017, allocations: 4 kB / 466.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.893e-05/0.08021, allocations: 0 / 466.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.566e-06/0.08022, allocations: 0 / 466.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.749e-06/0.08023, allocations: 0 / 466.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.827e-06/0.08025, allocations: 0 / 466.9 MB, free: 12.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 1.858e-05/0.08027, allocations: 37.64 kB / 466.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 2.881e-05/0.0803, allocations: 3.984 kB / 466.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.08031, allocations: 0 / 466.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.08032, allocations: 0 / 466.9 MB, free: 12.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.575e-06/0.08033, allocations: 0 / 466.9 MB, free: 12.29 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.0002729/0.0806, allocations: 319.6 kB / 467.2 MB, free: 11.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.08065, allocations: 12.03 kB / 467.2 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.677e-05/0.08068, allocations: 34.5 kB / 467.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.624e-05/0.0807, allocations: 3.953 kB / 467.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001136/0.08082, allocations: 167.1 kB / 467.4 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.282e-06/0.08084, allocations: 4 kB / 467.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.314e-06/0.08085, allocations: 0 / 467.4 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.407e-05/0.08092, allocations: 43.36 kB / 467.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.521e-06/0.08093, allocations: 4 kB / 467.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.889e-06/0.08094, allocations: 0 / 467.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.08095, allocations: 7.938 kB / 467.5 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.406e-05/0.08097, allocations: 4 kB / 467.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000286/0.08126, allocations: 467.7 kB / 467.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.331e-05/0.08135, allocations: 181.1 kB / 468.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.778e-05/0.08138, allocations: 84.17 kB / 468.2 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.913e-05/0.08141, allocations: 75.28 kB / 468.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.475e-05/0.08145, allocations: 109.8 kB / 468.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=0): time 8.12e-07/0.08146, allocations: 0 / 468.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=0): time 5.498e-05/0.08152, allocations: 25.7 kB / 468.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/0.08158, allocations: 134.6 kB / 468.5 MB, free: 10.44 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.978e-05/0.08166, allocations: 109.8 kB / 468.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.017e-06/0.08167, allocations: 25.7 kB / 468.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.91e-05/0.08173, allocations: 92.03 kB / 468.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.106e-06/0.08174, allocations: 4 kB / 468.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.814e-06/0.08174, allocations: 0 / 468.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.972e-05/0.08184, allocations: 310.8 kB / 469.1 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.941e-06/0.08185, allocations: 0 / 469.1 MB, free: 9.883 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.443e-05/0.08187, allocations: 21.7 kB / 469.1 MB, free: 9.855 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.843e-05/0.08189, allocations: 8 kB / 469.1 MB, free: 9.848 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.0819, allocations: 0 / 469.1 MB, free: 9.848 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.238e-05/0.08199, allocations: 41.55 kB / 469.1 MB, free: 9.801 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/0.08201, allocations: 5.875 kB / 469.1 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.89e-06/0.08202, allocations: 3.953 kB / 469.1 MB, free: 9.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.096e-05/0.08203, allocations: 4 kB / 469.1 MB, free: 9.789 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.79e-05/0.08208, allocations: 8.109 kB / 469.2 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.767e-06/0.08209, allocations: 0 / 469.2 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.919e-05/0.08212, allocations: 4 kB / 469.2 MB, free: 9.777 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.898e-06/0.08213, allocations: 0 / 469.2 MB, free: 9.777 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.357e-05/0.08221, allocations: 185.8 kB / 469.3 MB, free: 9.586 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.422e-05/0.08228, allocations: 108.9 kB / 469.4 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.582e-05/0.08232, allocations: 104.1 kB / 469.6 MB, free: 9.363 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.523e-05/0.08238, allocations: 188.2 kB / 469.7 MB, free: 9.172 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.804e-05/0.08245, allocations: 188.2 kB / 469.9 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-05/0.08251, allocations: 176.3 kB / 470.1 MB, free: 8.801 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000196/0.08271, allocations: 409.1 kB / 470.5 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-05/0.08275, allocations: 101 kB / 470.6 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.911e-05/0.08279, allocations: 105.2 kB / 470.7 MB, free: 8.129 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.617e-05/0.08285, allocations: 184.2 kB / 470.9 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.817e-05/0.08292, allocations: 184.3 kB / 471.1 MB, free: 7.754 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.532e-05/0.08298, allocations: 184.2 kB / 471.2 MB, free: 7.566 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.825e-05/0.08303, allocations: 180.2 kB / 471.4 MB, free: 7.383 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001237/0.08316, allocations: 312 kB / 471.7 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.459e-05/0.08323, allocations: 182.1 kB / 471.9 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.555e-05/0.0833, allocations: 184.2 kB / 472.1 MB, free: 6.664 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.053e-05/0.08338, allocations: 105 kB / 472.2 MB, free: 6.555 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.344e-05/0.08345, allocations: 192.1 kB / 472.4 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.03e-05/0.08349, allocations: 109 kB / 472.5 MB, free: 6.246 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.585e-05/0.08353, allocations: 83.27 kB / 472.5 MB, free: 6.164 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08353, allocations: 0 / 472.5 MB, free: 6.164 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002106/0.08375, allocations: 0 / 472.5 MB, free: 6.164 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003252/0.08408, allocations: 0.8013 MB / 473.3 MB, free: 5.332 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 4.612e-05/0.08413, allocations: 8 kB / 473.4 MB, free: 5.324 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.08414, allocations: 4 kB / 473.4 MB, free: 5.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.343e-06/0.08415, allocations: 0 / 473.4 MB, free: 5.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000337/0.08449, allocations: 0.5224 MB / 473.9 MB, free: 4.793 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004654/0.08497, allocations: 409 kB / 474.3 MB, free: 4.344 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002269/0.08521, allocations: 0.6731 MB / 475 MB, free: 3.645 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.536e-05/0.08523, allocations: 0 / 475 MB, free: 3.645 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.315e-05/0.08526, allocations: 11.44 kB / 475 MB, free: 3.633 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.08526, allocations: 0 / 475 MB, free: 3.633 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009342/0.09461, allocations: 0.8137 MB / 475.8 MB, free: 2.93 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001491/0.09479, allocations: 181.1 kB / 476 MB, free: 2.688 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.563/1.658, allocations: 0 / 476 MB, free: 2.688 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/linux/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) Environment - environmentSimulation: