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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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.0008108/0.0008105, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.327/1.327, allocations: 223.2 MB / 239 MB, free: 5.465 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.0009677/0.0009677, allocations: 180.4 kB / 290.3 MB, free: 2.148 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.0325/0.0325, allocations: 8.772 MB / 350.1 MB, free: 4.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003694/0.0003695, allocations: 12.09 kB / 413.3 MB, free: 43.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08499/0.08537, allocations: 52.57 MB / 465.8 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical4): time 0.001858/0.08727, allocations: 1.477 MB / 467.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007211/0.08801, allocations: 423.3 kB / 467.7 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.981e-05/0.0881, allocations: 4 kB / 467.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.812e-05/0.0882, allocations: 11.86 kB / 467.7 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.742e-05/0.08828, allocations: 31.77 kB / 467.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001225/0.0884, allocations: 19.97 kB / 467.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000152/0.08856, allocations: 111.5 kB / 467.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.0887, allocations: 37.2 kB / 467.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.024e-05/0.08875, allocations: 31.86 kB / 468 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.605e-05/0.08885, allocations: 47.78 kB / 468 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.808e-05/0.08887, allocations: 7.984 kB / 468 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.021e-05/0.0889, allocations: 8 kB / 468 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.084e-05/0.08892, allocations: 15.92 kB / 468.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.709e-05/0.08897, allocations: 45.64 kB / 468.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001003/0.08907, allocations: 83.98 kB / 468.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.08909, allocations: 3.984 kB / 468.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.08909, allocations: 0 / 468.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.088e-06/0.08911, allocations: 8 kB / 468.2 MB, free: 11.02 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.0004595/0.08957, allocations: 394.9 kB / 468.6 MB, free: 10.58 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.08962, allocations: 12.03 kB / 468.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.093e-05/0.08968, allocations: 50.45 kB / 468.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.224e-05/0.08972, allocations: 7.906 kB / 468.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002141/0.08994, allocations: 198.8 kB / 468.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.08996, allocations: 8 kB / 468.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.364e-05/0.08999, allocations: 8 kB / 468.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001904/0.09019, allocations: 107.2 kB / 469 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/0.0902, allocations: 0 / 469 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.09022, allocations: 4 kB / 469 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.09023, allocations: 7.953 kB / 469 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001156/0.09036, allocations: 63.91 kB / 469 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007376/0.0911, allocations: 0.4904 MB / 469.5 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.118e-05/0.0912, allocations: 58.48 kB / 469.6 MB, free: 9.449 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.172e-05/0.09124, allocations: 16.86 kB / 469.6 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.293e-06/0.09126, allocations: 4 kB / 469.6 MB, free: 9.426 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.182e-05/0.09129, allocations: 30.56 kB / 469.6 MB, free: 9.387 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.002e-06/0.09129, allocations: 0 / 469.6 MB, free: 9.387 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0001695/0.09147, allocations: 69.62 kB / 469.7 MB, free: 9.312 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.101e-05/0.09151, allocations: 51.41 kB / 469.7 MB, free: 9.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.09163, allocations: 144.2 kB / 469.9 MB, free: 9.102 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.414e-05/0.09165, allocations: 25.7 kB / 469.9 MB, free: 9.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.349e-05/0.09172, allocations: 116 kB / 470 MB, free: 8.953 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.481e-05/0.09175, allocations: 19.75 kB / 470 MB, free: 8.934 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.452e-06/0.09176, allocations: 0 / 470 MB, free: 8.934 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.09188, allocations: 326.8 kB / 470.4 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.509e-05/0.09191, allocations: 8 kB / 470.4 MB, free: 8.598 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.997e-05/0.09196, allocations: 38.55 kB / 470.4 MB, free: 8.551 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.757e-05/0.092, allocations: 24 kB / 470.4 MB, free: 8.527 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.09201, allocations: 0 / 470.4 MB, free: 8.527 MB / 302.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001103/0.09212, allocations: 77.59 kB / 470.5 MB, free: 8.445 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.09215, allocations: 4 kB / 470.5 MB, free: 8.441 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.09216, allocations: 11.94 kB / 470.5 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.09218, allocations: 3.953 kB / 470.5 MB, free: 8.426 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001083/0.0923, allocations: 19.98 kB / 470.6 MB, free: 8.406 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.09231, allocations: 0 / 470.6 MB, free: 8.406 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.276e-05/0.09236, allocations: 4 kB / 470.6 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-06/0.09237, allocations: 4 kB / 470.6 MB, free: 8.398 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.661e-05/0.09247, allocations: 121.8 kB / 470.7 MB, free: 8.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.06e-05/0.09251, allocations: 7.906 kB / 470.7 MB, free: 8.262 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.874e-05/0.09255, allocations: 16.17 kB / 470.7 MB, free: 8.242 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.09256, allocations: 0 / 470.7 MB, free: 8.242 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.09257, allocations: 3.953 kB / 470.7 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.09258, allocations: 4 kB / 470.7 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002081/0.09279, allocations: 185.6 kB / 470.9 MB, free: 8.004 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.0928, allocations: 0 / 470.9 MB, free: 8.004 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.419e-05/0.09287, allocations: 15.98 kB / 470.9 MB, free: 7.988 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.09288, allocations: 4 kB / 470.9 MB, free: 7.984 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-06/0.09289, allocations: 0 / 470.9 MB, free: 7.984 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.0929, allocations: 0 / 470.9 MB, free: 7.984 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.0929, allocations: 0 / 470.9 MB, free: 7.984 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001822/0.09309, allocations: 167.3 kB / 471.1 MB, free: 7.805 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.523e-05/0.09316, allocations: 92.97 kB / 471.2 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.541e-05/0.09318, allocations: 0 / 471.2 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.284e-05/0.09326, allocations: 12.06 kB / 471.2 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.641e-05/0.09329, allocations: 0 / 471.2 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-06/0.0933, allocations: 0 / 471.2 MB, free: 7.684 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.157e-05/0.09337, allocations: 115.2 kB / 471.3 MB, free: 7.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09338, allocations: 0 / 471.3 MB, free: 7.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002329/0.09362, allocations: 23.91 kB / 471.3 MB, free: 7.547 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 (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.0004279/0.09405, allocations: 0.6895 MB / 472 MB, free: 6.832 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 9.82e-05/0.09416, allocations: 31.98 kB / 472 MB, free: 6.801 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.09417, allocations: 0 / 472 MB, free: 6.801 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.333e-05/0.0942, allocations: 19.92 kB / 472.1 MB, free: 6.781 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000291/0.09449, allocations: 12 kB / 472.1 MB, free: 6.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009904/0.09549, allocations: 0.6988 MB / 472.8 MB, free: 6.023 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002922/0.0958, allocations: 0.7004 MB / 473.5 MB, free: 5.297 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.89e-05/0.09584, allocations: 8.656 kB / 473.5 MB, free: 5.289 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.223e-05/0.09589, allocations: 23.44 kB / 473.5 MB, free: 5.266 MB / 302.1 MB Notification: Performance of SimCode: time 2.7e-07/0.0959, allocations: 0 / 473.5 MB, free: 5.266 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01231/0.1082, allocations: 1.75 MB / 475.2 MB, free: 3.633 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001852/0.1084, allocations: 172.5 kB / 475.4 MB, free: 3.391 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.653/1.762, allocations: 0 / 475.4 MB, free: 3.391 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/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) Environment - environmentSimulation: