Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical1.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.Electrical1,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical1,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical1",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.007825/0.007825, allocations: 103.2 kB / 15.74 MB, free: 6.059 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.374/1.374, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.00144/0.00144, allocations: 196.4 kB / 289.7 MB, free: 2.254 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05331/0.05331, allocations: 8.794 MB / 348.7 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002186/0.002186, allocations: 83.84 kB / 463.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09932/0.1015, allocations: 51.56 MB / 0.5029 GB, free: 9.996 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical1): time 0.001602/0.1032, allocations: 0.489 MB / 0.5034 GB, free: 9.508 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001529/0.1033, allocations: 23.91 kB / 0.5034 GB, free: 9.484 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.018e-05/0.1034, allocations: 0 / 0.5034 GB, free: 9.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.476e-05/0.1034, allocations: 0 / 0.5034 GB, free: 9.484 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.306e-05/0.1034, allocations: 7.938 kB / 0.5034 GB, free: 9.477 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001236/0.1036, allocations: 0 / 0.5034 GB, free: 9.477 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.806e-05/0.1036, allocations: 15.98 kB / 0.5034 GB, free: 9.461 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.647e-05/0.1037, allocations: 0 / 0.5034 GB, free: 9.461 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.509e-05/0.1037, allocations: 7.938 kB / 0.5034 GB, free: 9.453 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.304e-05/0.1038, allocations: 7.969 kB / 0.5034 GB, free: 9.445 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.45e-05/0.1038, allocations: 0 / 0.5034 GB, free: 9.445 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.674e-06/0.1038, allocations: 0 / 0.5034 GB, free: 9.445 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.024e-05/0.1038, allocations: 7.938 kB / 0.5034 GB, free: 9.438 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.324e-05/0.1039, allocations: 4 kB / 0.5034 GB, free: 9.434 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.176e-05/0.1039, allocations: 8.156 kB / 0.5035 GB, free: 9.426 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.104, allocations: 8 kB / 0.5035 GB, free: 9.418 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.104, allocations: 0 / 0.5035 GB, free: 9.418 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.104, allocations: 3.938 kB / 0.5035 GB, free: 9.414 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003975/0.1044, allocations: 327.5 kB / 0.5038 GB, free: 9.043 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.1044, allocations: 8.031 kB / 0.5038 GB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.785e-05/0.1045, allocations: 34.73 kB / 0.5038 GB, free: 8.992 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.225e-05/0.1045, allocations: 4.938 kB / 0.5038 GB, free: 8.988 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001308/0.1046, allocations: 164.3 kB / 0.504 GB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.088e-05/0.1047, allocations: 384 / 0.504 GB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.634e-05/0.1047, allocations: 4.375 kB / 0.504 GB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.069e-05/0.1048, allocations: 42.25 kB / 0.504 GB, free: 8.738 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.1048, allocations: 3.938 kB / 0.504 GB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.863e-06/0.1048, allocations: 0 / 0.504 GB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.1048, allocations: 0 / 0.504 GB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.2e-05/0.1049, allocations: 7.938 kB / 0.504 GB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000184/0.105, allocations: 153.7 kB / 0.5042 GB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.549e-05/0.1051, allocations: 38.61 kB / 0.5042 GB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.9e-05/0.1052, allocations: 16.86 kB / 0.5042 GB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.983e-06/0.1052, allocations: 3.938 kB / 0.5042 GB, free: 8.457 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/0.1052, allocations: 34.56 kB / 0.5043 GB, free: 8.414 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.1052, allocations: 0 / 0.5043 GB, free: 8.414 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001457/0.1054, allocations: 53.66 kB / 0.5043 GB, free: 8.355 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.024e-05/0.1054, allocations: 51.41 kB / 0.5044 GB, free: 8.293 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.652e-05/0.1055, allocations: 106 kB / 0.5045 GB, free: 8.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.569e-05/0.1055, allocations: 29.7 kB / 0.5045 GB, free: 8.145 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.915e-05/0.1056, allocations: 88.14 kB / 0.5046 GB, free: 8.055 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.286e-05/0.1056, allocations: 7.906 kB / 0.5046 GB, free: 8.047 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.272e-05/0.1057, allocations: 17.72 kB / 0.5046 GB, free: 8.023 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.1058, allocations: 314.8 kB / 0.5049 GB, free: 7.707 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.502e-05/0.1058, allocations: 4 kB / 0.5049 GB, free: 7.703 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.28e-05/0.1059, allocations: 8 kB / 0.5049 GB, free: 7.695 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.767e-05/0.1059, allocations: 16.86 kB / 0.5049 GB, free: 7.676 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.1059, allocations: 4 kB / 0.5049 GB, free: 7.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.902e-05/0.106, allocations: 49.62 kB / 0.505 GB, free: 7.617 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.106, allocations: 7.938 kB / 0.505 GB, free: 7.609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.106, allocations: 4 kB / 0.505 GB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.106, allocations: 0 / 0.505 GB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.1061, allocations: 11.98 kB / 0.505 GB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.1062, allocations: 3.984 kB / 0.505 GB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.655e-05/0.1062, allocations: 4 kB / 0.505 GB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.237e-06/0.1062, allocations: 0 / 0.505 GB, free: 7.586 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (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 prepare postOptimizeDAE: time 8.291e-05/0.1063, allocations: 125.7 kB / 0.5051 GB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.706e-06/0.1063, allocations: 3.938 kB / 0.5051 GB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.979e-05/0.1063, allocations: 3.5 kB / 0.5051 GB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.1063, allocations: 0 / 0.5051 GB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.1063, allocations: 0 / 0.5051 GB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.1063, allocations: 0 / 0.5051 GB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001262/0.1065, allocations: 157.7 kB / 0.5053 GB, free: 7.238 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1065, allocations: 4 kB / 0.5053 GB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.523e-05/0.1065, allocations: 11.92 kB / 0.5053 GB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.1066, allocations: 7.938 kB / 0.5053 GB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.782e-06/0.1066, allocations: 4 kB / 0.5053 GB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1066, allocations: 0 / 0.5053 GB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.1066, allocations: 0 / 0.5053 GB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001279/0.1067, allocations: 77.08 kB / 0.5054 GB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.307e-05/0.1068, allocations: 81.05 kB / 0.5055 GB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.286e-05/0.1068, allocations: 3.938 kB / 0.5055 GB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.691e-05/0.1068, allocations: 4.031 kB / 0.5055 GB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.422e-05/0.1068, allocations: 3.984 kB / 0.5055 GB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.264e-06/0.1068, allocations: 8 kB / 0.5055 GB, free: 7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.993e-05/0.1069, allocations: 87.22 kB / 0.5056 GB, free: 6.914 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1069, allocations: 0 / 0.5056 GB, free: 6.914 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001743/0.1071, allocations: 0 / 0.5056 GB, free: 6.914 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (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 (3): * Single equations (assignments): 3 * 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.0004054/0.1075, allocations: 0.6129 MB / 0.5062 GB, free: 6.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.917e-05/0.1076, allocations: 20.09 kB / 0.5062 GB, free: 6.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1076, allocations: 4 kB / 0.5062 GB, free: 6.246 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.001e-05/0.1076, allocations: 7.938 kB / 0.5062 GB, free: 6.238 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001331/0.1077, allocations: 5.562 kB / 0.5062 GB, free: 6.234 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009641/0.1087, allocations: 1.114 MB / 0.5073 GB, free: 5.039 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003033/0.109, allocations: 0.6766 MB / 0.508 GB, free: 4.336 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.754e-05/0.1091, allocations: 0 / 0.508 GB, free: 4.336 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.859e-05/0.1091, allocations: 11.42 kB / 0.508 GB, free: 4.324 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1091, allocations: 0 / 0.508 GB, free: 4.324 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0228/0.1319, allocations: 1.088 MB / 0.509 GB, free: 3.305 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.532/7.664, allocations: 11.98 kB / 0.509 GB, free: 3.293 MB / 350.1 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical1_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical1.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe 2>&1)