Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical2.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.Electrical2,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical2,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical2",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.008049/0.008049, allocations: 98.77 kB / 15.73 MB, free: 6.066 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.395/1.395, allocations: 222.9 MB / 239.4 MB, free: 4.527 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.001397/0.001397, allocations: 192.5 kB / 289.7 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03555/0.03555, allocations: 8.805 MB / 348.7 MB, free: 4.586 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002291/0.002291, allocations: 75.88 kB / 463.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09958/0.1019, allocations: 51.56 MB / 0.5029 GB, free: 9.973 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical2): time 0.001526/0.1034, allocations: 0.5008 MB / 0.5034 GB, free: 9.473 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001327/0.1036, allocations: 27.95 kB / 0.5034 GB, free: 9.445 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.609e-05/0.1036, allocations: 0 / 0.5034 GB, free: 9.445 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.489e-05/0.1037, allocations: 3.938 kB / 0.5034 GB, free: 9.441 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.443e-05/0.1037, allocations: 0 / 0.5034 GB, free: 9.441 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001032/0.1038, allocations: 3.938 kB / 0.5034 GB, free: 9.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.555e-05/0.1039, allocations: 19.92 kB / 0.5034 GB, free: 9.418 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.992e-05/0.1039, allocations: 4 kB / 0.5034 GB, free: 9.414 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.207e-05/0.104, allocations: 7.922 kB / 0.5035 GB, free: 9.406 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.822e-05/0.104, allocations: 4 kB / 0.5035 GB, free: 9.402 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.255e-05/0.104, allocations: 0 / 0.5035 GB, free: 9.402 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.129e-05/0.1041, allocations: 4 kB / 0.5035 GB, free: 9.398 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.177e-05/0.1041, allocations: 15.92 kB / 0.5035 GB, free: 9.383 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.122e-05/0.1041, allocations: 0 / 0.5035 GB, free: 9.383 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 5.998e-05/0.1042, allocations: 12.16 kB / 0.5035 GB, free: 9.371 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1042, allocations: 4 kB / 0.5035 GB, free: 9.367 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1042, allocations: 0 / 0.5035 GB, free: 9.367 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.1042, allocations: 0 / 0.5035 GB, free: 9.367 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.0003927/0.1046, allocations: 327.5 kB / 0.5038 GB, free: 8.996 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.1046, allocations: 8.031 kB / 0.5038 GB, free: 8.988 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.03e-05/0.1047, allocations: 30.75 kB / 0.5038 GB, free: 8.949 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.071e-05/0.1047, allocations: 8.938 kB / 0.5039 GB, free: 8.941 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001385/0.1049, allocations: 172.3 kB / 0.504 GB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.184e-06/0.1049, allocations: 384 / 0.504 GB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.345e-05/0.1049, allocations: 8.375 kB / 0.504 GB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.666e-05/0.105, allocations: 38.19 kB / 0.5041 GB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.105, allocations: 3.938 kB / 0.5041 GB, free: 8.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.793e-06/0.105, allocations: 0 / 0.5041 GB, free: 8.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.957e-06/0.105, allocations: 0 / 0.5041 GB, free: 8.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.19e-05/0.1051, allocations: 8 kB / 0.5041 GB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001776/0.1052, allocations: 157.7 kB / 0.5042 GB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.73e-05/0.1053, allocations: 30.67 kB / 0.5043 GB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.614e-05/0.1054, allocations: 20.84 kB / 0.5043 GB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.213e-06/0.1054, allocations: 3.938 kB / 0.5043 GB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.124e-05/0.1054, allocations: 30.56 kB / 0.5043 GB, free: 8.363 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.1054, allocations: 0 / 0.5043 GB, free: 8.363 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001446/0.1055, allocations: 53.61 kB / 0.5044 GB, free: 8.305 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/0.1056, allocations: 59.41 kB / 0.5044 GB, free: 8.234 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.563e-05/0.1057, allocations: 97.84 kB / 0.5045 GB, free: 8.129 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.1057, allocations: 29.7 kB / 0.5045 GB, free: 8.094 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.04e-05/0.1057, allocations: 84.08 kB / 0.5046 GB, free: 8.008 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.553e-05/0.1058, allocations: 15.83 kB / 0.5046 GB, free: 7.992 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.226e-05/0.1058, allocations: 17.72 kB / 0.5046 GB, free: 7.969 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.1059, allocations: 310.8 kB / 0.5049 GB, free: 7.656 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.12e-05/0.106, allocations: 11.98 kB / 0.505 GB, free: 7.645 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.096e-05/0.106, allocations: 11.94 kB / 0.505 GB, free: 7.633 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.775e-05/0.106, allocations: 16.86 kB / 0.505 GB, free: 7.613 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.106, allocations: 0 / 0.505 GB, free: 7.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.762e-05/0.1061, allocations: 45.69 kB / 0.505 GB, free: 7.562 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.1061, allocations: 11.94 kB / 0.505 GB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.1061, allocations: 0 / 0.505 GB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.1062, allocations: 0 / 0.505 GB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.014e-05/0.1062, allocations: 8 kB / 0.505 GB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.638e-06/0.1063, allocations: 0 / 0.505 GB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.891e-05/0.1063, allocations: 3.984 kB / 0.505 GB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.709e-06/0.1063, allocations: 11.94 kB / 0.5051 GB, free: 7.527 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 7.473e-05/0.1064, allocations: 117.7 kB / 0.5052 GB, free: 7.402 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.746e-06/0.1064, allocations: 3.938 kB / 0.5052 GB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.567e-05/0.1064, allocations: 7.5 kB / 0.5052 GB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.1064, allocations: 0 / 0.5052 GB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.1064, allocations: 0 / 0.5052 GB, free: 7.387 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.1064, allocations: 4 kB / 0.5052 GB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001167/0.1066, allocations: 153.7 kB / 0.5053 GB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.1066, allocations: 0 / 0.5053 GB, free: 7.184 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.263e-05/0.1066, allocations: 15.94 kB / 0.5053 GB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.185e-06/0.1067, allocations: 3.938 kB / 0.5054 GB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.744e-06/0.1067, allocations: 3.984 kB / 0.5054 GB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.1067, allocations: 0 / 0.5054 GB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1067, allocations: 0 / 0.5054 GB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001235/0.1068, allocations: 81.02 kB / 0.5054 GB, free: 7.062 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.843e-05/0.1068, allocations: 77.11 kB / 0.5055 GB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.424e-05/0.1069, allocations: 7.969 kB / 0.5055 GB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.863e-05/0.1069, allocations: 8.625 kB / 0.5055 GB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.43e-05/0.1069, allocations: 0 / 0.5055 GB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/0.1069, allocations: 3.984 kB / 0.5055 GB, free: 6.949 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.555e-05/0.107, allocations: 83.27 kB / 0.5056 GB, free: 6.867 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.107, allocations: 3.938 kB / 0.5056 GB, free: 6.863 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000178/0.1072, allocations: 4 kB / 0.5056 GB, free: 6.859 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.0003825/0.1075, allocations: 0.6047 MB / 0.5062 GB, free: 6.223 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.248e-05/0.1076, allocations: 23.92 kB / 0.5062 GB, free: 6.199 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.1077, allocations: 0 / 0.5062 GB, free: 6.199 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.493e-05/0.1077, allocations: 8 kB / 0.5062 GB, free: 6.191 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001286/0.1078, allocations: 9.656 kB / 0.5062 GB, free: 6.184 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001068/0.1089, allocations: 1.175 MB / 0.5074 GB, free: 4.926 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002854/0.1092, allocations: 0.6883 MB / 0.5081 GB, free: 4.211 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.476e-05/0.1092, allocations: 0 / 0.5081 GB, free: 4.211 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.807e-05/0.1092, allocations: 11.44 kB / 0.5081 GB, free: 4.199 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1092, allocations: 0 / 0.5081 GB, free: 4.199 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02334/0.1326, allocations: 1.106 MB / 0.5092 GB, free: 3.156 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.528/7.661, allocations: 8.047 kB / 0.5092 GB, free: 3.148 MB / 350.1 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical2.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe 2>&1)