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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001002/0.001002, allocations: 177.5 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04219/0.04219, allocations: 8.709 MB / 16.79 MB, free: 3.375 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 221.5 MB / 240.9 MB, free: 13.22 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001044/0.001044, allocations: 94.97 kB / 293.9 MB, free: 7.176 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.261e-05/2.263e-05, allocations: 4 kB / 352.7 MB, free: 1.191 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1273, allocations: 52.57 MB / 405.3 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3803/0.5077, allocations: 75.81 MB / 481.1 MB, free: 11.19 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000225/0.508, allocations: 64.31 kB / 481.2 MB, free: 11.16 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0007663/0.5087, allocations: 455 kB / 481.6 MB, free: 10.73 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.524e-06/0.5088, allocations: 0 / 481.6 MB, free: 10.73 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.5088, allocations: 5.656 kB / 481.6 MB, free: 10.73 MB / 346.7 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.0001742/0.509, allocations: 321.7 kB / 481.9 MB, free: 10.38 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.509, allocations: 11.98 kB / 481.9 MB, free: 10.37 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.899e-05/0.509, allocations: 4.094 kB / 481.9 MB, free: 10.37 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001005/0.5091, allocations: 165.8 kB / 482.1 MB, free: 10.17 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.051e-05/0.5092, allocations: 1.156 kB / 482.1 MB, free: 10.17 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.484e-06/0.5092, allocations: 0 / 482.1 MB, free: 10.17 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 2.713e-05/0.5092, allocations: 0 / 482.1 MB, free: 10.17 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.505e-05/0.5093, allocations: 45.09 kB / 482.1 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.603e-06/0.5093, allocations: 0 / 482.1 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.508e-06/0.5093, allocations: 3.953 kB / 482.1 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.5093, allocations: 0 / 482.1 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002331/0.5096, allocations: 458.3 kB / 482.6 MB, free: 9.637 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.518e-05/0.5096, allocations: 168.1 kB / 482.8 MB, free: 9.465 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.8e-05/0.5096, allocations: 80.14 kB / 482.8 MB, free: 9.383 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.485e-05/0.5097, allocations: 75.28 kB / 482.9 MB, free: 9.309 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.343e-05/0.5097, allocations: 114 kB / 483 MB, free: 9.195 MB / 346.7 MB Notification: Performance of pre-optimization done (n=0): time 1.011e-06/0.5097, allocations: 4 kB / 483 MB, free: 9.191 MB / 346.7 MB Notification: Performance of matching and sorting (n=0): time 5.915e-05/0.5098, allocations: 33.59 kB / 483.1 MB, free: 9.152 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.621e-05/0.5098, allocations: 51.41 kB / 483.1 MB, free: 9.09 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.368e-05/0.5098, allocations: 95.88 kB / 483.2 MB, free: 8.996 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.523e-06/0.5099, allocations: 33.19 kB / 483.2 MB, free: 8.961 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.477e-05/0.5099, allocations: 95.36 kB / 483.3 MB, free: 8.867 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.963e-06/0.5099, allocations: 0 / 483.3 MB, free: 8.867 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.124e-06/0.5099, allocations: 0 / 483.3 MB, free: 8.867 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.752e-05/0.51, allocations: 314.5 kB / 483.6 MB, free: 8.555 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.845e-06/0.51, allocations: 4 kB / 483.6 MB, free: 8.551 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.884e-06/0.51, allocations: 9.719 kB / 483.6 MB, free: 8.535 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.483e-05/0.51, allocations: 4 kB / 483.7 MB, free: 8.531 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.51, allocations: 4.062 kB / 483.7 MB, free: 8.527 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.726e-05/0.5101, allocations: 45.19 kB / 483.7 MB, free: 8.48 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.5101, allocations: 4 kB / 483.7 MB, free: 8.477 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.5101, allocations: 0 / 483.7 MB, free: 8.477 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.5102, allocations: 1.031 kB / 483.7 MB, free: 8.477 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.076e-05/0.5102, allocations: 7.953 kB / 483.7 MB, free: 8.469 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.5102, allocations: 0 / 483.7 MB, free: 8.469 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.077e-05/0.5103, allocations: 5.312 kB / 483.7 MB, free: 8.465 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.182e-06/0.5103, allocations: 0 / 483.7 MB, free: 8.465 MB / 346.7 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 () * 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 4.973e-05/0.5103, allocations: 180.3 kB / 483.9 MB, free: 8.281 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 4.853e-05/0.5104, allocations: 139.4 kB / 484 MB, free: 8.133 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.397e-05/0.5104, allocations: 104.9 kB / 484.1 MB, free: 8.023 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.83e-05/0.5104, allocations: 116.6 kB / 484.2 MB, free: 7.902 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.137e-05/0.5105, allocations: 180 kB / 484.4 MB, free: 7.723 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-05/0.5105, allocations: 180.2 kB / 484.6 MB, free: 7.539 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.832e-05/0.5106, allocations: 184.9 kB / 484.8 MB, free: 7.352 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000128/0.5107, allocations: 377.8 kB / 485.1 MB, free: 6.938 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.019e-05/0.5107, allocations: 108.5 kB / 485.3 MB, free: 6.828 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.75e-05/0.5107, allocations: 112 kB / 485.4 MB, free: 6.715 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-05/0.5108, allocations: 181.3 kB / 485.5 MB, free: 6.531 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.066e-05/0.5108, allocations: 180.3 kB / 485.7 MB, free: 6.348 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.523e-05/0.5108, allocations: 180.2 kB / 485.9 MB, free: 6.164 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.723e-05/0.5109, allocations: 181.7 kB / 486.1 MB, free: 5.98 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.749e-05/0.5109, allocations: 307.4 kB / 486.4 MB, free: 5.66 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.499e-05/0.511, allocations: 186 kB / 486.5 MB, free: 5.453 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.655e-05/0.511, allocations: 184.2 kB / 486.7 MB, free: 5.266 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.158e-05/0.5111, allocations: 104.9 kB / 486.8 MB, free: 5.156 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.077e-05/0.5111, allocations: 180.2 kB / 487 MB, free: 4.973 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.055e-05/0.5112, allocations: 105.9 kB / 487.1 MB, free: 4.863 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.322e-05/0.5112, allocations: 82.91 kB / 487.2 MB, free: 4.785 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5112, allocations: 0 / 487.2 MB, free: 4.785 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002279/0.5114, allocations: 0 / 487.2 MB, free: 4.785 MB / 346.7 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 () * 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.0002028/0.5116, allocations: 0.8044 MB / 488 MB, free: 3.957 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 4.897e-05/0.5117, allocations: 4 kB / 488 MB, free: 3.953 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.5117, allocations: 0 / 488 MB, free: 3.953 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.82e-07/0.5117, allocations: 0 / 488 MB, free: 3.953 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002258/0.5119, allocations: 0.5306 MB / 488.5 MB, free: 3.422 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002641/0.5122, allocations: 149 kB / 488.7 MB, free: 3.238 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001057/0.5123, allocations: 0.6768 MB / 489.4 MB, free: 2.535 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 1.954e-05/0.5123, allocations: 0 / 489.4 MB, free: 2.535 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.605e-05/0.5124, allocations: 11.44 kB / 489.4 MB, free: 2.527 MB / 346.7 MB Notification: Performance of SimCode: time 2.2e-07/0.5124, allocations: 0 / 489.4 MB, free: 2.527 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02046/0.5328, allocations: 0.4974 MB / 489.9 MB, free: 2.059 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001592/0.5331, allocations: 131 kB / 490 MB, free: 1.863 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.489/2.022, allocations: 1.969 kB / 490 MB, free: 1.863 MB / 346.7 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)