Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical4.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.Electrical4,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical4,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical4",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.00133/0.00133, allocations: 174.5 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.04168/0.04168, 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.437/1.437, allocations: 221.4 MB / 246 MB, free: 3.555 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.0008903/0.0008904, allocations: 98.22 kB / 299.1 MB, free: 2.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.778e-05/2.787e-05, allocations: 0 / 359.6 MB, free: 6.422 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.26, allocations: 52.54 MB / 412.2 MB, free: 22.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09909/0.3592, allocations: 78.65 MB / 490.8 MB, free: 7.762 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001966/0.3594, allocations: 63.97 kB / 490.9 MB, free: 7.699 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005305/0.3647, allocations: 2.061 MB / 492.9 MB, free: 5.637 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3648, allocations: 0 / 492.9 MB, free: 5.637 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.3648, allocations: 0 / 492.9 MB, free: 5.637 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0003884/0.3652, allocations: 394.2 kB / 493.3 MB, free: 5.207 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.3652, allocations: 8.031 kB / 493.3 MB, free: 5.199 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.06e-05/0.3653, allocations: 38.56 kB / 493.4 MB, free: 5.152 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.607e-05/0.3653, allocations: 15.81 kB / 493.4 MB, free: 5.137 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001937/0.3655, allocations: 194.9 kB / 493.6 MB, free: 4.906 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.3655, allocations: 8 kB / 493.6 MB, free: 4.898 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.755e-05/0.3656, allocations: 12 kB / 493.6 MB, free: 4.887 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001872/0.3658, allocations: 98.77 kB / 493.7 MB, free: 4.785 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.3658, allocations: 0 / 493.7 MB, free: 4.785 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.722e-05/0.3658, allocations: 7.953 kB / 493.7 MB, free: 4.777 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.3658, allocations: 8 kB / 493.7 MB, free: 4.77 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001074/0.3659, allocations: 56 kB / 493.7 MB, free: 4.715 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007261/0.3667, allocations: 0.5059 MB / 494.3 MB, free: 4.145 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.182e-05/0.3668, allocations: 42.56 kB / 494.3 MB, free: 4.094 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.246e-05/0.3668, allocations: 20.84 kB / 494.3 MB, free: 4.07 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.747e-06/0.3668, allocations: 4 kB / 494.3 MB, free: 4.066 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.898e-05/0.3668, allocations: 34.56 kB / 494.4 MB, free: 4.023 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 5.17e-06/0.3669, allocations: 0 / 494.4 MB, free: 4.023 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001505/0.367, allocations: 65.61 kB / 494.4 MB, free: 3.953 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/0.3671, allocations: 51.41 kB / 494.5 MB, free: 3.891 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/0.3672, allocations: 131 kB / 494.6 MB, free: 3.754 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.275e-05/0.3672, allocations: 29.7 kB / 494.6 MB, free: 3.719 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.357e-05/0.3673, allocations: 116 kB / 494.7 MB, free: 3.598 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.439e-05/0.3673, allocations: 19.8 kB / 494.8 MB, free: 3.578 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.357e-06/0.3673, allocations: 0 / 494.8 MB, free: 3.578 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.232e-05/0.3674, allocations: 318.8 kB / 495.1 MB, free: 3.258 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.526e-05/0.3674, allocations: 12 kB / 495.1 MB, free: 3.246 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.974e-05/0.3675, allocations: 31.27 kB / 495.1 MB, free: 3.207 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.903e-05/0.3675, allocations: 19.92 kB / 495.1 MB, free: 3.188 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.3675, allocations: 0 / 495.1 MB, free: 3.188 MB / 362.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001079/0.3676, allocations: 77.59 kB / 495.2 MB, free: 3.105 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.3676, allocations: 14.19 kB / 495.2 MB, free: 3.094 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.3677, allocations: 0 / 495.2 MB, free: 3.094 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.3677, allocations: 3.953 kB / 495.2 MB, free: 3.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.612e-05/0.3678, allocations: 15.98 kB / 495.2 MB, free: 3.074 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.102e-06/0.3678, allocations: 4 kB / 495.2 MB, free: 3.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.48e-05/0.3678, allocations: 7.938 kB / 495.3 MB, free: 3.062 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.796e-06/0.3679, allocations: 4 kB / 495.3 MB, free: 3.059 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.729e-05/0.3679, allocations: 101 kB / 495.4 MB, free: 2.953 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.829e-05/0.368, allocations: 7.906 kB / 495.4 MB, free: 2.945 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.01e-05/0.368, allocations: 16.03 kB / 495.4 MB, free: 2.922 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.368, allocations: 0 / 495.4 MB, free: 2.922 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.368, allocations: 3.953 kB / 495.4 MB, free: 2.918 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.368, allocations: 0 / 495.4 MB, free: 2.918 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001774/0.3682, allocations: 193.6 kB / 495.6 MB, free: 2.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3682, allocations: 3.938 kB / 495.6 MB, free: 2.676 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.752e-05/0.3683, allocations: 12.06 kB / 495.6 MB, free: 2.664 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.3683, allocations: 0 / 495.6 MB, free: 2.664 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.837e-06/0.3683, allocations: 7.984 kB / 495.6 MB, free: 2.656 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.3683, allocations: 0 / 495.6 MB, free: 2.656 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3683, allocations: 4 kB / 495.6 MB, free: 2.652 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001539/0.3685, allocations: 163.4 kB / 495.8 MB, free: 2.477 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.025e-05/0.3685, allocations: 85.05 kB / 495.8 MB, free: 2.375 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.73e-05/0.3686, allocations: 0 / 495.8 MB, free: 2.375 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.045e-05/0.3686, allocations: 11.88 kB / 495.9 MB, free: 2.363 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.841e-05/0.3687, allocations: 3.984 kB / 495.9 MB, free: 2.359 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.3687, allocations: 4 kB / 495.9 MB, free: 2.355 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.963e-05/0.3688, allocations: 111.3 kB / 496 MB, free: 2.246 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.302e-06/0.3688, allocations: 0 / 496 MB, free: 2.246 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002263/0.369, allocations: 35.78 kB / 496 MB, free: 2.211 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (inductor.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0003676/0.3694, allocations: 0.6929 MB / 496.7 MB, free: 1.492 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.978e-05/0.3695, allocations: 32.06 kB / 496.7 MB, free: 1.461 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.3695, allocations: 4 kB / 496.7 MB, free: 1.457 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.616e-05/0.3695, allocations: 8 kB / 496.7 MB, free: 1.449 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001832/0.3697, allocations: 11.98 kB / 496.8 MB, free: 1.438 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005067/0.3702, allocations: 216 kB / 497 MB, free: 1.191 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000223/0.3704, allocations: 0.7082 MB / 497.7 MB, free: 468 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.003e-05/0.3705, allocations: 12.64 kB / 497.7 MB, free: 456 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.184e-05/0.3705, allocations: 23.44 kB / 497.7 MB, free: 432 kB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3705, allocations: 0 / 497.7 MB, free: 432 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01325/0.3838, allocations: 1.696 MB / 499.4 MB, free: 14.84 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002811/0.3841, allocations: 144.7 kB / 499.5 MB, free: 14.61 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.526/1.911, allocations: 0 / 499.5 MB, free: 14.61 MB / 378.7 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical4_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical4.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe 2>&1)