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/ModelicaServices 4.0.0+maint.om/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/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) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007503/0.0007504, allocations: 91.84 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 223.3 MB / 239.4 MB, free: 5.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 184.5 kB / 290.6 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03212/0.03212, allocations: 8.807 MB / 350.5 MB, free: 4.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003719/0.0003718, allocations: 10.38 kB / 413.9 MB, free: 42.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08891/0.0893, allocations: 52.56 MB / 466.5 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical4): time 0.001872/0.0912, allocations: 1.516 MB / 468 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007172/0.09194, allocations: 455 kB / 468.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.597e-05/0.09203, allocations: 0 / 468.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.13e-05/0.09213, allocations: 15.91 kB / 468.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.257e-05/0.0922, allocations: 23.78 kB / 468.5 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001273/0.09233, allocations: 15.98 kB / 468.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002104/0.09255, allocations: 119.5 kB / 468.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001164/0.09268, allocations: 41.19 kB / 468.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.775e-05/0.09273, allocations: 43.8 kB / 468.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.208e-05/0.09281, allocations: 43.78 kB / 468.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.807e-05/0.09284, allocations: 8 kB / 468.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.709e-05/0.09286, allocations: 4 kB / 468.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.41e-05/0.09289, allocations: 15.92 kB / 468.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.945e-05/0.09295, allocations: 77.44 kB / 468.8 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001186/0.09308, allocations: 119.8 kB / 469 MB, free: 10.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.09309, allocations: 4 kB / 469 MB, free: 10.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.0931, allocations: 0 / 469 MB, free: 10.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.09311, allocations: 0 / 469 MB, free: 10.57 MB / 302.1 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.0004838/0.0936, allocations: 395.1 kB / 469.3 MB, free: 10.13 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.09364, allocations: 8.031 kB / 469.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.379e-05/0.09369, allocations: 42.73 kB / 469.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.689e-05/0.09377, allocations: 8.844 kB / 469.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002473/0.09402, allocations: 200.1 kB / 469.6 MB, free: 9.832 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.432e-05/0.09405, allocations: 16.31 kB / 469.6 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.801e-05/0.09408, allocations: 16.38 kB / 469.6 MB, free: 9.801 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001783/0.09426, allocations: 111.2 kB / 469.7 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.09428, allocations: 0 / 469.7 MB, free: 9.688 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.0943, allocations: 4 kB / 469.7 MB, free: 9.684 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.09431, allocations: 4 kB / 469.7 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001099/0.09442, allocations: 55.98 kB / 469.8 MB, free: 9.625 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007698/0.0952, allocations: 0.502 MB / 470.3 MB, free: 9.059 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.098e-05/0.0953, allocations: 46.56 kB / 470.4 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.389e-05/0.09534, allocations: 20.94 kB / 470.4 MB, free: 8.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.193e-06/0.09536, allocations: 0 / 470.4 MB, free: 8.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.745e-05/0.09539, allocations: 34.56 kB / 470.4 MB, free: 8.938 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 8.01e-07/0.0954, allocations: 0 / 470.4 MB, free: 8.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001772/0.09558, allocations: 65.53 kB / 470.5 MB, free: 8.867 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.787e-05/0.09562, allocations: 55.41 kB / 470.5 MB, free: 8.801 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001243/0.09575, allocations: 143.4 kB / 470.7 MB, free: 8.652 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.519e-05/0.09578, allocations: 25.7 kB / 470.7 MB, free: 8.621 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.219e-05/0.09586, allocations: 120 kB / 470.8 MB, free: 8.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.651e-05/0.09588, allocations: 19.73 kB / 470.8 MB, free: 8.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.477e-05/0.09591, allocations: 13.72 kB / 470.8 MB, free: 8.461 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.09606, allocations: 326.8 kB / 471.2 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.838e-05/0.09609, allocations: 12 kB / 471.2 MB, free: 8.121 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.661e-05/0.09614, allocations: 30.56 kB / 471.2 MB, free: 8.082 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.269e-05/0.09622, allocations: 50.52 kB / 471.2 MB, free: 8.023 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.09623, allocations: 0 / 471.2 MB, free: 8.023 MB / 302.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001243/0.09636, allocations: 77.53 kB / 471.3 MB, free: 7.941 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.09639, allocations: 8 kB / 471.3 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.0964, allocations: 0 / 471.3 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.09641, allocations: 0 / 471.3 MB, free: 7.934 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001015/0.09652, allocations: 20.05 kB / 471.4 MB, free: 7.914 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.583e-06/0.09653, allocations: 8 kB / 471.4 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.203e-05/0.09658, allocations: 3.906 kB / 471.4 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/0.09659, allocations: 4 kB / 471.4 MB, free: 7.898 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001002/0.0967, allocations: 125.7 kB / 471.5 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.896e-05/0.09673, allocations: 7.906 kB / 471.5 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.141e-05/0.09677, allocations: 12.25 kB / 471.5 MB, free: 7.742 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.09678, allocations: 3.984 kB / 471.5 MB, free: 7.738 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/0.09679, allocations: 0 / 471.5 MB, free: 7.738 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.0968, allocations: 7.938 kB / 471.5 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002214/0.09703, allocations: 193.6 kB / 471.7 MB, free: 7.492 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.09704, allocations: 0 / 471.7 MB, free: 7.492 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.617e-05/0.09711, allocations: 15.92 kB / 471.7 MB, free: 7.477 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.09712, allocations: 0 / 471.7 MB, free: 7.477 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.246e-06/0.09713, allocations: 0 / 471.7 MB, free: 7.477 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.09714, allocations: 64 / 471.7 MB, free: 7.477 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.09715, allocations: 8 kB / 471.7 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001694/0.09732, allocations: 175.3 kB / 471.9 MB, free: 7.281 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.689e-05/0.09739, allocations: 88.94 kB / 472 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.576e-05/0.09741, allocations: 0 / 472 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.104e-05/0.09749, allocations: 8.031 kB / 472 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.52e-05/0.09752, allocations: 4 kB / 472 MB, free: 7.164 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.457e-06/0.09753, allocations: 0 / 472 MB, free: 7.164 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.523e-05/0.09761, allocations: 109 kB / 472.1 MB, free: 7.059 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09761, allocations: 0 / 472.1 MB, free: 7.059 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000238/0.09785, allocations: 24 kB / 472.1 MB, free: 7.035 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004284/0.09829, allocations: 0.6931 MB / 472.8 MB, free: 6.316 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001107/0.09841, allocations: 32.03 kB / 472.9 MB, free: 6.285 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.09842, allocations: 0 / 472.9 MB, free: 6.285 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.41e-05/0.09845, allocations: 23.91 kB / 472.9 MB, free: 6.262 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002986/0.09875, allocations: 12.19 kB / 472.9 MB, free: 6.25 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00157/0.1003, allocations: 1.635 MB / 474.5 MB, free: 4.527 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002678/0.1006, allocations: 0.7082 MB / 475.2 MB, free: 3.793 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.794e-05/0.1007, allocations: 8.656 kB / 475.2 MB, free: 3.785 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.557e-05/0.1007, allocations: 27.44 kB / 475.3 MB, free: 3.758 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1007, allocations: 0 / 475.3 MB, free: 3.758 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01055/0.1113, allocations: 1.768 MB / 477 MB, free: 2.098 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000216/0.1115, allocations: 200.3 kB / 477.2 MB, free: 1.828 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.592/1.704, allocations: 0 / 477.2 MB, free: 1.828 MB / 302.1 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/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)