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.001649/0.001649, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04606/0.04606, allocations: 8.702 MB / 21.96 MB, free: 3.367 MB / 18.57 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.4 MB / 246 MB, free: 3.559 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.001104/0.001105, allocations: 94.91 kB / 299.1 MB, free: 2.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.658e-05/3.691e-05, allocations: 3.984 kB / 359.6 MB, free: 6.418 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2826/0.2826, allocations: 52.54 MB / 412.2 MB, free: 22.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1081/0.3907, allocations: 76.49 MB / 488.6 MB, free: 9.949 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002615/0.3911, allocations: 59.98 kB / 488.7 MB, free: 9.891 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001003/0.3921, allocations: 460.3 kB / 489.2 MB, free: 9.441 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3921, allocations: 0 / 489.2 MB, free: 9.441 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.3921, allocations: 0 / 489.2 MB, free: 9.441 MB / 362.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.000303/0.3924, allocations: 320.9 kB / 489.5 MB, free: 9.086 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.646e-05/0.3925, allocations: 8.031 kB / 489.5 MB, free: 9.078 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.393e-05/0.3926, allocations: 30.56 kB / 489.5 MB, free: 9.039 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.729e-05/0.3926, allocations: 11.89 kB / 489.5 MB, free: 9.027 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001754/0.3928, allocations: 159.1 kB / 489.7 MB, free: 8.832 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.186e-05/0.3928, allocations: 4 kB / 489.7 MB, free: 8.828 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.123e-05/0.3928, allocations: 7.984 kB / 489.7 MB, free: 8.82 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.687e-05/0.3929, allocations: 47.34 kB / 489.7 MB, free: 8.762 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.3929, allocations: 4 kB / 489.7 MB, free: 8.758 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.624e-06/0.3929, allocations: 0 / 489.7 MB, free: 8.758 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-06/0.393, allocations: 3.953 kB / 489.7 MB, free: 8.754 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.725e-05/0.393, allocations: 0 / 489.7 MB, free: 8.754 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003887/0.3934, allocations: 479.6 kB / 490.2 MB, free: 8.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.578e-05/0.3935, allocations: 165.1 kB / 490.4 MB, free: 8.059 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.502e-05/0.3935, allocations: 80.14 kB / 490.4 MB, free: 7.977 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.791e-05/0.3936, allocations: 75.28 kB / 490.5 MB, free: 7.902 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.825e-05/0.3936, allocations: 117.8 kB / 490.6 MB, free: 7.777 MB / 362.7 MB Notification: Performance of pre-optimization done (n=0): time 9.32e-07/0.3936, allocations: 3.938 kB / 490.6 MB, free: 7.773 MB / 362.7 MB Notification: Performance of matching and sorting (n=0): time 0.0001077/0.3938, allocations: 29.64 kB / 490.7 MB, free: 7.738 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.836e-05/0.3938, allocations: 126.7 kB / 490.8 MB, free: 7.602 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.134e-05/0.3939, allocations: 105 kB / 490.9 MB, free: 7.492 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.002e-05/0.394, allocations: 25.7 kB / 490.9 MB, free: 7.461 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.901e-05/0.394, allocations: 91.98 kB / 491 MB, free: 7.367 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.134e-06/0.394, allocations: 4 kB / 491 MB, free: 7.363 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.595e-06/0.394, allocations: 0 / 491 MB, free: 7.363 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.3942, allocations: 314.8 kB / 491.3 MB, free: 7.047 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.343e-06/0.3942, allocations: 0 / 491.3 MB, free: 7.047 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.957e-05/0.3942, allocations: 17.72 kB / 491.3 MB, free: 7.023 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.928e-05/0.3942, allocations: 3.984 kB / 491.3 MB, free: 7.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.3942, allocations: 64 / 491.3 MB, free: 7.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001055/0.3944, allocations: 45.64 kB / 491.4 MB, free: 6.969 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.3944, allocations: 4 kB / 491.4 MB, free: 6.965 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.3944, allocations: 0 / 491.4 MB, free: 6.965 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.3944, allocations: 3.953 kB / 491.4 MB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.756e-05/0.3945, allocations: 4 kB / 491.4 MB, free: 6.957 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.3945, allocations: 0 / 491.4 MB, free: 6.957 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.237e-05/0.3945, allocations: 7.984 kB / 491.4 MB, free: 6.949 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.764e-06/0.3945, allocations: 3.984 kB / 491.4 MB, free: 6.945 MB / 362.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 0.0001011/0.3946, allocations: 184.3 kB / 491.6 MB, free: 6.758 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.72e-05/0.3947, allocations: 108.9 kB / 491.7 MB, free: 6.645 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.256e-05/0.3948, allocations: 104.1 kB / 491.8 MB, free: 6.535 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.195e-05/0.3948, allocations: 184.2 kB / 492 MB, free: 6.348 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.515e-05/0.3949, allocations: 180.2 kB / 492.2 MB, free: 6.164 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-05/0.395, allocations: 184.3 kB / 492.3 MB, free: 5.977 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002689/0.3953, allocations: 401.2 kB / 492.7 MB, free: 5.527 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-05/0.3953, allocations: 112.9 kB / 492.8 MB, free: 5.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.995e-05/0.3954, allocations: 104.9 kB / 492.9 MB, free: 5.301 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.323e-05/0.3954, allocations: 180.6 kB / 493.1 MB, free: 5.117 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.919e-05/0.3955, allocations: 180.3 kB / 493.3 MB, free: 4.934 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.95e-05/0.3956, allocations: 188.2 kB / 493.5 MB, free: 4.742 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.923e-05/0.3957, allocations: 184.2 kB / 493.7 MB, free: 4.555 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001469/0.3958, allocations: 307.7 kB / 494 MB, free: 4.23 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.513e-05/0.3959, allocations: 182 kB / 494.1 MB, free: 4.027 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.819e-05/0.396, allocations: 184.2 kB / 494.3 MB, free: 3.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.026e-05/0.3961, allocations: 109 kB / 494.4 MB, free: 3.727 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.392e-05/0.3962, allocations: 180.2 kB / 494.6 MB, free: 3.543 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.524e-05/0.3963, allocations: 108.9 kB / 494.7 MB, free: 3.43 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.926e-05/0.3963, allocations: 83.53 kB / 494.8 MB, free: 3.348 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3963, allocations: 0 / 494.8 MB, free: 3.348 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002412/0.3966, allocations: 4 kB / 494.8 MB, free: 3.344 MB / 362.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.0004313/0.397, allocations: 0.8057 MB / 495.6 MB, free: 2.512 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 7.303e-05/0.3971, allocations: 4 kB / 495.6 MB, free: 2.508 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3971, allocations: 0 / 495.6 MB, free: 2.508 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.222e-06/0.3971, allocations: 0 / 495.6 MB, free: 2.508 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003785/0.3975, allocations: 0.5265 MB / 496.1 MB, free: 1.977 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003941/0.3979, allocations: 153.9 kB / 496.3 MB, free: 1.789 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000322/0.3982, allocations: 0.677 MB / 496.9 MB, free: 1.086 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.19e-05/0.3983, allocations: 0 / 496.9 MB, free: 1.086 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.175e-05/0.3983, allocations: 11.44 kB / 497 MB, free: 1.074 MB / 362.7 MB Notification: Performance of SimCode: time 4.31e-07/0.3983, allocations: 0 / 497 MB, free: 1.074 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01097/0.4093, allocations: 0.7842 MB / 497.7 MB, free: 404 kB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001939/0.4095, allocations: 152.5 kB / 497.9 MB, free: 164 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.604/2.014, allocations: 0 / 497.9 MB, free: 164 kB / 362.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)