Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical2.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.FirstSteps.Electrical2,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical2,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical2",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.001228/0.001228, allocations: 175 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.03908/0.03908, allocations: 8.699 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.484/1.484, allocations: 221.4 MB / 246 MB, free: 3.598 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.0008561/0.0008561, allocations: 86.31 kB / 299.1 MB, free: 2.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.996e-05/2.998e-05, allocations: 4 kB / 359.6 MB, free: 6.414 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2707/0.2707, allocations: 52.53 MB / 412.1 MB, free: 22.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1/0.3708, allocations: 76.09 MB / 488.2 MB, free: 10.33 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002086/0.371, allocations: 59.97 kB / 488.3 MB, free: 10.27 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.000941/0.372, allocations: 466.1 kB / 488.8 MB, free: 9.82 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.372, allocations: 4 kB / 488.8 MB, free: 9.816 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.473e-06/0.372, allocations: 0 / 488.8 MB, free: 9.816 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0002876/0.3723, allocations: 324.5 kB / 489.1 MB, free: 9.457 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/0.3724, allocations: 12.02 kB / 489.1 MB, free: 9.445 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.785e-05/0.3724, allocations: 30.56 kB / 489.1 MB, free: 9.406 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.498e-05/0.3725, allocations: 7.391 kB / 489.1 MB, free: 9.402 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001293/0.3726, allocations: 170.9 kB / 489.3 MB, free: 9.195 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.754e-06/0.3726, allocations: 0 / 489.3 MB, free: 9.195 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.976e-05/0.3726, allocations: 0 / 489.3 MB, free: 9.195 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.247e-05/0.3727, allocations: 41.62 kB / 489.3 MB, free: 9.148 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.3727, allocations: 0 / 489.3 MB, free: 9.148 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.186e-06/0.3728, allocations: 4 kB / 489.3 MB, free: 9.145 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.431e-06/0.3728, allocations: 3.953 kB / 489.3 MB, free: 9.141 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.357e-05/0.3728, allocations: 7.984 kB / 489.3 MB, free: 9.133 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001847/0.373, allocations: 155.8 kB / 489.5 MB, free: 8.934 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.199e-05/0.3731, allocations: 30.58 kB / 489.5 MB, free: 8.895 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.908e-05/0.3731, allocations: 20.86 kB / 489.5 MB, free: 8.871 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.306e-05/0.3731, allocations: 3.938 kB / 489.6 MB, free: 8.867 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.096e-05/0.3732, allocations: 38.09 kB / 489.6 MB, free: 8.824 MB / 362.7 MB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.3732, allocations: 0 / 489.6 MB, free: 8.824 MB / 362.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001191/0.3733, allocations: 41.7 kB / 489.6 MB, free: 8.777 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.153e-05/0.3733, allocations: 51.41 kB / 489.7 MB, free: 8.715 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.721e-05/0.3734, allocations: 96.94 kB / 489.8 MB, free: 8.613 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.318e-05/0.3734, allocations: 25.7 kB / 489.8 MB, free: 8.582 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.005e-05/0.3735, allocations: 88.14 kB / 489.9 MB, free: 8.492 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.437e-05/0.3735, allocations: 11.84 kB / 489.9 MB, free: 8.48 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.204e-06/0.3735, allocations: 0 / 489.9 MB, free: 8.48 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.3736, allocations: 314.8 kB / 490.2 MB, free: 8.164 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.172e-05/0.3737, allocations: 4 kB / 490.2 MB, free: 8.16 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.03e-05/0.3737, allocations: 4 kB / 490.2 MB, free: 8.156 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.298e-05/0.3737, allocations: 15.92 kB / 490.2 MB, free: 8.141 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.3737, allocations: 0 / 490.2 MB, free: 8.141 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.198e-05/0.3738, allocations: 45.55 kB / 490.3 MB, free: 8.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.3738, allocations: 11.98 kB / 490.3 MB, free: 8.078 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.3738, allocations: 0 / 490.3 MB, free: 8.078 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.3738, allocations: 4 kB / 490.3 MB, free: 8.074 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.442e-05/0.3739, allocations: 8 kB / 490.3 MB, free: 8.066 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.3739, allocations: 4 kB / 490.3 MB, free: 8.062 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.592e-05/0.374, allocations: 0 / 490.3 MB, free: 8.062 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.743e-06/0.374, allocations: 3.953 kB / 490.3 MB, free: 8.059 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 4 * 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 5.792e-05/0.374, allocations: 101 kB / 490.4 MB, free: 7.953 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.746e-06/0.3741, allocations: 4 kB / 490.4 MB, free: 7.949 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.485e-05/0.3741, allocations: 11.5 kB / 490.4 MB, free: 7.934 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.3741, allocations: 3.984 kB / 490.4 MB, free: 7.93 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.3741, allocations: 0 / 490.4 MB, free: 7.93 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.3741, allocations: 0 / 490.4 MB, free: 7.93 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.962e-05/0.3742, allocations: 157.6 kB / 490.6 MB, free: 7.727 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.3742, allocations: 3.984 kB / 490.6 MB, free: 7.723 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.226e-05/0.3743, allocations: 12.31 kB / 490.6 MB, free: 7.711 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.3743, allocations: 0 / 490.6 MB, free: 7.711 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.896e-06/0.3743, allocations: 4 kB / 490.6 MB, free: 7.707 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.3743, allocations: 4 kB / 490.6 MB, free: 7.703 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.3743, allocations: 0 / 490.6 MB, free: 7.703 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001359/0.3745, allocations: 84.97 kB / 490.7 MB, free: 7.602 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.734e-05/0.3745, allocations: 77.11 kB / 490.8 MB, free: 7.508 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.402e-05/0.3746, allocations: 3.984 kB / 490.8 MB, free: 7.504 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.809e-05/0.3746, allocations: 4.031 kB / 490.8 MB, free: 7.5 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.899e-05/0.3746, allocations: 4 kB / 490.8 MB, free: 7.496 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-06/0.3746, allocations: 0 / 490.8 MB, free: 7.496 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.544e-05/0.3747, allocations: 79.28 kB / 490.8 MB, free: 7.418 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.903e-06/0.3747, allocations: 4.062 kB / 490.9 MB, free: 7.414 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001627/0.3748, allocations: 7.938 kB / 490.9 MB, free: 7.406 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0003759/0.3752, allocations: 0.6086 MB / 491.5 MB, free: 6.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 7.42e-05/0.3753, allocations: 12 kB / 491.5 MB, free: 6.758 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.3753, allocations: 4 kB / 491.5 MB, free: 6.754 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.246e-05/0.3753, allocations: 12 kB / 491.5 MB, free: 6.742 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.301e-05/0.3754, allocations: 0 / 491.5 MB, free: 6.742 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004031/0.3758, allocations: 159.1 kB / 491.7 MB, free: 6.551 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002689/0.3761, allocations: 0.6848 MB / 492.3 MB, free: 5.84 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.419e-05/0.3761, allocations: 0 / 492.3 MB, free: 5.84 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.306e-05/0.3762, allocations: 7.438 kB / 492.3 MB, free: 5.832 MB / 362.7 MB Notification: Performance of SimCode: time 4.2e-07/0.3762, allocations: 4 kB / 492.3 MB, free: 5.828 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0117/0.3879, allocations: 0.8782 MB / 493.2 MB, free: 5.051 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001685/0.3881, allocations: 142.4 kB / 493.4 MB, free: 4.824 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.5/1.888, allocations: 4.062 kB / 493.4 MB, free: 4.82 MB / 362.7 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical2.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe 2>&1)