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.008769/0.008769, allocations: 172.4 kB / 15.12 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04639/0.04639, allocations: 8.798 MB / 24.65 MB, free: 4.117 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.316/1.316, allocations: 223.2 MB / 250.7 MB, free: 6.543 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.0009016/0.0009016, allocations: 99.27 kB / 304 MB, free: 3.988 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000377/0.0003771, allocations: 8 kB / 367.2 MB, free: 4.832 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2792, allocations: 52.54 MB / 419.7 MB, free: 48.11 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0907/0.3699, allocations: 78.72 MB / 498.4 MB, free: 10.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002212/0.3702, allocations: 63.97 kB / 498.5 MB, free: 10.28 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005366/0.3756, allocations: 2.066 MB / 0.4888 GB, free: 8.23 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3756, allocations: 0 / 0.4888 GB, free: 8.23 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.776e-06/0.3756, allocations: 0 / 0.4888 GB, free: 8.23 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.0004813/0.3761, allocations: 398.5 kB / 0.4892 GB, free: 7.797 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.3762, allocations: 12.56 kB / 0.4892 GB, free: 7.785 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.782e-05/0.3762, allocations: 50.55 kB / 0.4892 GB, free: 7.727 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.709e-05/0.3763, allocations: 11.81 kB / 0.4893 GB, free: 7.715 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000225/0.3765, allocations: 199.1 kB / 0.4894 GB, free: 7.48 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.3765, allocations: 7.938 kB / 0.4895 GB, free: 7.473 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.775e-05/0.3766, allocations: 12 kB / 0.4895 GB, free: 7.461 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001932/0.3768, allocations: 97.66 kB / 0.4896 GB, free: 7.359 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.3768, allocations: 0 / 0.4896 GB, free: 7.359 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.802e-05/0.3768, allocations: 7.953 kB / 0.4896 GB, free: 7.352 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.3768, allocations: 4 kB / 0.4896 GB, free: 7.348 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001207/0.3769, allocations: 61 kB / 0.4896 GB, free: 7.289 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000726/0.3777, allocations: 0.4983 MB / 0.4901 GB, free: 6.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001075/0.3778, allocations: 50.5 kB / 0.4902 GB, free: 6.672 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.484e-06/0.3778, allocations: 0 / 0.4902 GB, free: 6.672 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.511e-05/0.3778, allocations: 30.56 kB / 0.4902 GB, free: 6.633 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 9.62e-07/0.3779, allocations: 0 / 0.4902 GB, free: 6.633 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001681/0.378, allocations: 65.64 kB / 0.4903 GB, free: 6.562 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.89e-05/0.3781, allocations: 55.41 kB / 0.4903 GB, free: 6.496 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001136/0.3782, allocations: 138.9 kB / 0.4904 GB, free: 6.352 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.913e-05/0.3782, allocations: 25.7 kB / 0.4905 GB, free: 6.32 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.122e-05/0.3783, allocations: 120 kB / 0.4906 GB, free: 6.191 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.472e-05/0.3783, allocations: 15.73 kB / 0.4906 GB, free: 6.176 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.667e-06/0.3784, allocations: 0 / 0.4906 GB, free: 6.176 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.3785, allocations: 322.8 kB / 0.4909 GB, free: 5.852 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.914e-05/0.3785, allocations: 15.94 kB / 0.4909 GB, free: 5.836 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.413e-05/0.3786, allocations: 38.56 kB / 0.491 GB, free: 5.789 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.282e-05/0.3786, allocations: 12 kB / 0.491 GB, free: 5.777 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3786, allocations: 0 / 0.491 GB, free: 5.777 MB / 362.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001146/0.3787, allocations: 77.62 kB / 0.491 GB, free: 5.695 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.3788, allocations: 8 kB / 0.491 GB, free: 5.688 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.538e-06/0.3788, allocations: 0 / 0.491 GB, free: 5.688 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.3788, allocations: 0 / 0.491 GB, free: 5.688 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.792e-05/0.3789, allocations: 19.94 kB / 0.4911 GB, free: 5.668 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.685e-06/0.3789, allocations: 8.062 kB / 0.4911 GB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.439e-05/0.3789, allocations: 7.844 kB / 0.4911 GB, free: 5.652 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.802e-06/0.379, allocations: 4 kB / 0.4911 GB, free: 5.648 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 () * Number of clocked 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 8.768e-05/0.3791, allocations: 122.3 kB / 0.4912 GB, free: 5.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.811e-05/0.3791, allocations: 7.906 kB / 0.4912 GB, free: 5.512 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.915e-05/0.3791, allocations: 4.25 kB / 0.4912 GB, free: 5.504 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.3791, allocations: 8.172 kB / 0.4912 GB, free: 5.496 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.3791, allocations: 7.891 kB / 0.4912 GB, free: 5.488 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.3792, allocations: 7.984 kB / 0.4912 GB, free: 5.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001786/0.3793, allocations: 193.7 kB / 0.4914 GB, free: 5.242 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.3793, allocations: 0 / 0.4914 GB, free: 5.242 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.745e-05/0.3794, allocations: 11.98 kB / 0.4914 GB, free: 5.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.3794, allocations: 0 / 0.4914 GB, free: 5.23 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.184e-06/0.3794, allocations: 0 / 0.4914 GB, free: 5.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.3794, allocations: 0 / 0.4914 GB, free: 5.23 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3794, allocations: 0 / 0.4914 GB, free: 5.23 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001515/0.3796, allocations: 167.3 kB / 0.4916 GB, free: 5.051 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.437e-05/0.3797, allocations: 97.09 kB / 0.4917 GB, free: 4.938 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.642e-05/0.3797, allocations: 0 / 0.4917 GB, free: 4.938 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.236e-05/0.3798, allocations: 4 kB / 0.4917 GB, free: 4.934 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.076e-05/0.3798, allocations: 0 / 0.4917 GB, free: 4.934 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.122e-06/0.3798, allocations: 4 kB / 0.4917 GB, free: 4.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.171e-05/0.3799, allocations: 113.8 kB / 0.4918 GB, free: 4.82 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3799, allocations: 0 / 0.4918 GB, free: 4.82 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002278/0.3801, allocations: 31.8 kB / 0.4918 GB, free: 4.789 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 () * Number of clocked 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.0003576/0.3805, allocations: 0.6891 MB / 0.4925 GB, free: 4.07 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.047e-05/0.3806, allocations: 35.92 kB / 0.4925 GB, free: 4.035 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.3806, allocations: 0 / 0.4925 GB, free: 4.035 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.998e-05/0.3806, allocations: 23.86 kB / 0.4926 GB, free: 4.012 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002004/0.3808, allocations: 12.19 kB / 0.4926 GB, free: 4 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001058/0.3819, allocations: 1.01 MB / 0.4936 GB, free: 2.941 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002234/0.3821, allocations: 0.7004 MB / 0.4942 GB, free: 2.215 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.758e-05/0.3822, allocations: 8.656 kB / 0.4942 GB, free: 2.207 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.421e-05/0.3822, allocations: 27.44 kB / 0.4943 GB, free: 2.18 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3822, allocations: 4 kB / 0.4943 GB, free: 2.176 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01315/0.3954, allocations: 1.717 MB / 0.496 GB, free: 0.5938 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001748/0.3956, allocations: 172.6 kB / 0.4961 GB, free: 356 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.488/1.884, allocations: 0 / 0.4961 GB, free: 356 kB / 362.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)