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.006436/0.006436, allocations: 96.47 kB / 15.73 MB, free: 6.051 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.371/1.371, allocations: 222.9 MB / 239.4 MB, free: 4.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.001462/0.001462, allocations: 192.5 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03627/0.03627, allocations: 8.803 MB / 348.7 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002191/0.002191, allocations: 79.86 kB / 463.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09682/0.09903, allocations: 51.56 MB / 0.5029 GB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical4): time 0.002751/0.1018, allocations: 1.805 MB / 0.5047 GB, free: 8.188 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006722/0.1025, allocations: 466.8 kB / 0.5051 GB, free: 7.727 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.832e-05/0.1026, allocations: 4 kB / 0.5051 GB, free: 7.723 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001041/0.1027, allocations: 19.78 kB / 0.5051 GB, free: 7.703 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.686e-05/0.1028, allocations: 27.72 kB / 0.5052 GB, free: 7.676 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001282/0.1029, allocations: 31.97 kB / 0.5052 GB, free: 7.645 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001662/0.1031, allocations: 119.5 kB / 0.5053 GB, free: 7.527 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001311/0.1032, allocations: 49.03 kB / 0.5053 GB, free: 7.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.062e-05/0.1033, allocations: 47.8 kB / 0.5054 GB, free: 7.434 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.853e-05/0.1034, allocations: 51.77 kB / 0.5054 GB, free: 7.383 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.524e-05/0.1034, allocations: 16 kB / 0.5055 GB, free: 7.367 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.5e-05/0.1035, allocations: 12 kB / 0.5055 GB, free: 7.355 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.854e-05/0.1035, allocations: 19.92 kB / 0.5055 GB, free: 7.336 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.292e-05/0.1036, allocations: 55.73 kB / 0.5055 GB, free: 7.281 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001625/0.1037, allocations: 119.5 kB / 0.5057 GB, free: 7.164 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.1037, allocations: 0 / 0.5057 GB, free: 7.164 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1037, allocations: 0 / 0.5057 GB, free: 7.164 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.1038, allocations: 0 / 0.5057 GB, free: 7.164 MB / 350.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.0005316/0.1043, allocations: 418.9 kB / 0.5061 GB, free: 6.707 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.1043, allocations: 8.031 kB / 0.5061 GB, free: 6.699 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.441e-05/0.1044, allocations: 50.67 kB / 0.5061 GB, free: 6.641 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.463e-05/0.1044, allocations: 16.84 kB / 0.5061 GB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002291/0.1047, allocations: 192.2 kB / 0.5063 GB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.397e-06/0.1047, allocations: 4.375 kB / 0.5063 GB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.848e-05/0.1047, allocations: 12.38 kB / 0.5063 GB, free: 6.383 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001888/0.1049, allocations: 113.7 kB / 0.5064 GB, free: 6.266 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.1049, allocations: 0 / 0.5064 GB, free: 6.266 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/0.1049, allocations: 7.984 kB / 0.5064 GB, free: 6.258 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.1049, allocations: 8 kB / 0.5064 GB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001101/0.1051, allocations: 51.98 kB / 0.5065 GB, free: 6.199 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000749/0.1058, allocations: 498.3 kB / 0.507 GB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.493e-05/0.1059, allocations: 58.55 kB / 0.507 GB, free: 5.582 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.714e-05/0.106, allocations: 20.94 kB / 0.507 GB, free: 5.559 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.865e-06/0.106, allocations: 0 / 0.507 GB, free: 5.559 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.547e-05/0.106, allocations: 30.56 kB / 0.5071 GB, free: 5.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 9.52e-07/0.106, allocations: 0 / 0.5071 GB, free: 5.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.000165/0.1062, allocations: 65.58 kB / 0.5071 GB, free: 5.449 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.328e-05/0.1062, allocations: 59.34 kB / 0.5072 GB, free: 5.379 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001253/0.1064, allocations: 139.2 kB / 0.5073 GB, free: 5.234 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.1064, allocations: 29.7 kB / 0.5074 GB, free: 5.199 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.141e-05/0.1065, allocations: 128 kB / 0.5075 GB, free: 5.066 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.481e-05/0.1065, allocations: 15.89 kB / 0.5075 GB, free: 5.051 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.91e-05/0.1065, allocations: 21.72 kB / 0.5075 GB, free: 5.023 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.1067, allocations: 322.8 kB / 0.5078 GB, free: 4.699 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.787e-05/0.1068, allocations: 12 kB / 0.5078 GB, free: 4.688 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.499e-05/0.1068, allocations: 30.56 kB / 0.5079 GB, free: 4.648 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.956e-05/0.1069, allocations: 54.52 kB / 0.5079 GB, free: 4.586 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1069, allocations: 0 / 0.5079 GB, free: 4.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001224/0.107, allocations: 89.58 kB / 0.508 GB, free: 4.492 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.13e-05/0.107, allocations: 4 kB / 0.508 GB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.1071, allocations: 0 / 0.508 GB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.1071, allocations: 4 kB / 0.508 GB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.957e-05/0.1072, allocations: 20.05 kB / 0.508 GB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.843e-06/0.1072, allocations: 0 / 0.508 GB, free: 4.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.504e-05/0.1072, allocations: 15.83 kB / 0.508 GB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.528e-06/0.1072, allocations: 0 / 0.508 GB, free: 4.449 MB / 350.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.000103/0.1073, allocations: 129.7 kB / 0.5082 GB, free: 4.312 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.585e-05/0.1074, allocations: 3.953 kB / 0.5082 GB, free: 4.309 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.63e-05/0.1074, allocations: 12.25 kB / 0.5082 GB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.586e-06/0.1074, allocations: 3.984 kB / 0.5082 GB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.217e-06/0.1074, allocations: 0 / 0.5082 GB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.1074, allocations: 4 kB / 0.5082 GB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002078/0.1076, allocations: 193.6 kB / 0.5084 GB, free: 4.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.1077, allocations: 0 / 0.5084 GB, free: 4.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.334e-05/0.1077, allocations: 11.98 kB / 0.5084 GB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.1077, allocations: 4 kB / 0.5084 GB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.613e-06/0.1077, allocations: 0 / 0.5084 GB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1077, allocations: 0 / 0.5084 GB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.1078, allocations: 0 / 0.5084 GB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001853/0.1079, allocations: 171.4 kB / 0.5086 GB, free: 3.844 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.424e-05/0.108, allocations: 89.08 kB / 0.5086 GB, free: 3.738 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.873e-05/0.108, allocations: 4 kB / 0.5086 GB, free: 3.734 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.019e-05/0.1081, allocations: 4 kB / 0.5086 GB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.426e-05/0.1081, allocations: 0 / 0.5086 GB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.617e-06/0.1081, allocations: 0 / 0.5086 GB, free: 3.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.828e-05/0.1082, allocations: 113 kB / 0.5088 GB, free: 3.621 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1082, allocations: 0 / 0.5088 GB, free: 3.621 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002303/0.1085, allocations: 23.94 kB / 0.5088 GB, free: 3.598 MB / 350.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.0004575/0.1089, allocations: 0.6929 MB / 0.5095 GB, free: 2.879 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001067/0.1091, allocations: 39.92 kB / 0.5095 GB, free: 2.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1091, allocations: 0 / 0.5095 GB, free: 2.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.531e-05/0.1091, allocations: 20.2 kB / 0.5095 GB, free: 2.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002523/0.1094, allocations: 12.38 kB / 0.5095 GB, free: 2.809 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001568/0.1109, allocations: 1.581 MB / 0.5111 GB, free: 1.137 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003266/0.1113, allocations: 0.7002 MB / 0.5118 GB, free: 420 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.357e-05/0.1113, allocations: 0.7812 kB / 0.5118 GB, free: 420 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.85e-05/0.1114, allocations: 39.36 kB / 0.5118 GB, free: 380 kB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1114, allocations: 0 / 0.5118 GB, free: 380 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02259/0.134, allocations: 1.999 MB / 0.5137 GB, free: 14.44 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.524/7.658, allocations: 3.984 kB / 0.5137 GB, free: 14.44 MB / 366.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)