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.005452/0.005452, allocations: 103 kB / 15.73 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.405/1.405, 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.001623/0.001623, allocations: 192.5 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0345/0.0345, allocations: 8.802 MB / 348.7 MB, free: 4.605 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001641/0.001641, allocations: 75.89 kB / 463.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1122, allocations: 51.56 MB / 0.5029 GB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical2): time 0.002054/0.1143, allocations: 0.5007 MB / 0.5034 GB, free: 9.516 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001687/0.1145, allocations: 27.89 kB / 0.5034 GB, free: 9.488 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.851e-05/0.1146, allocations: 0 / 0.5034 GB, free: 9.488 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.267e-05/0.1146, allocations: 3.938 kB / 0.5034 GB, free: 9.484 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.124e-05/0.1147, allocations: 3.984 kB / 0.5034 GB, free: 9.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001344/0.1148, allocations: 4 kB / 0.5034 GB, free: 9.477 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.984e-05/0.1149, allocations: 23.8 kB / 0.5034 GB, free: 9.453 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.112e-05/0.115, allocations: 4 kB / 0.5034 GB, free: 9.449 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.45e-05/0.115, allocations: 4 kB / 0.5034 GB, free: 9.445 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.089e-05/0.1151, allocations: 4 kB / 0.5035 GB, free: 9.441 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.817e-05/0.1151, allocations: 4 kB / 0.5035 GB, free: 9.438 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.426e-05/0.1151, allocations: 0 / 0.5035 GB, free: 9.438 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.8e-05/0.1151, allocations: 11.92 kB / 0.5035 GB, free: 9.426 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.583e-05/0.1152, allocations: 0 / 0.5035 GB, free: 9.426 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.913e-05/0.1152, allocations: 15.92 kB / 0.5035 GB, free: 9.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1152, allocations: 0 / 0.5035 GB, free: 9.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1153, allocations: 4 kB / 0.5035 GB, free: 9.406 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.511e-06/0.1153, allocations: 0 / 0.5035 GB, free: 9.406 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.0004247/0.1157, allocations: 327.7 kB / 0.5038 GB, free: 9.035 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/0.1158, allocations: 12.03 kB / 0.5038 GB, free: 9.023 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.451e-05/0.1158, allocations: 34.75 kB / 0.5038 GB, free: 8.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.009e-05/0.1158, allocations: 4.938 kB / 0.5038 GB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.116, allocations: 164.4 kB / 0.504 GB, free: 8.777 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.241e-05/0.116, allocations: 384 / 0.504 GB, free: 8.777 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.357e-05/0.116, allocations: 8.359 kB / 0.504 GB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001823/0.1162, allocations: 38.25 kB / 0.5041 GB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.947e-05/0.1162, allocations: 7.875 kB / 0.5041 GB, free: 8.719 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.1163, allocations: 4 kB / 0.5041 GB, free: 8.715 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.1163, allocations: 0 / 0.5041 GB, free: 8.715 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.08e-05/0.1163, allocations: 8 kB / 0.5041 GB, free: 8.707 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002055/0.1165, allocations: 153.7 kB / 0.5042 GB, free: 8.508 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.632e-05/0.1166, allocations: 34.61 kB / 0.5042 GB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.264e-05/0.1167, allocations: 16.86 kB / 0.5043 GB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.235e-06/0.1167, allocations: 0 / 0.5043 GB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.672e-05/0.1167, allocations: 34.5 kB / 0.5043 GB, free: 8.402 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 2.655e-06/0.1167, allocations: 4 kB / 0.5043 GB, free: 8.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001587/0.1169, allocations: 53.66 kB / 0.5044 GB, free: 8.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.51e-05/0.1169, allocations: 51.41 kB / 0.5044 GB, free: 8.277 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.438e-05/0.117, allocations: 101.8 kB / 0.5045 GB, free: 8.168 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.117, allocations: 33.64 kB / 0.5045 GB, free: 8.129 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.032e-05/0.1171, allocations: 80.14 kB / 0.5046 GB, free: 8.047 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.103e-05/0.1171, allocations: 11.81 kB / 0.5046 GB, free: 8.035 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.715e-05/0.1172, allocations: 13.72 kB / 0.5046 GB, free: 8.016 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.1173, allocations: 318.8 kB / 0.5049 GB, free: 7.695 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.775e-05/0.1173, allocations: 7.984 kB / 0.5049 GB, free: 7.688 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.316e-05/0.1173, allocations: 4 kB / 0.5049 GB, free: 7.684 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.272e-05/0.1174, allocations: 24.8 kB / 0.505 GB, free: 7.656 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1174, allocations: 0 / 0.505 GB, free: 7.656 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.536e-05/0.1175, allocations: 46.2 kB / 0.505 GB, free: 7.605 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.1175, allocations: 11.94 kB / 0.505 GB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.1175, allocations: 0 / 0.505 GB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.1175, allocations: 0 / 0.505 GB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001008/0.1176, allocations: 8 kB / 0.505 GB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.65e-05/0.1177, allocations: 7.984 kB / 0.505 GB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.824e-05/0.1177, allocations: 0 / 0.505 GB, free: 7.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.248e-06/0.1177, allocations: 0 / 0.505 GB, free: 7.578 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.701e-05/0.1178, allocations: 121.7 kB / 0.5052 GB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.267e-05/0.1178, allocations: 7.844 kB / 0.5052 GB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.753e-05/0.1178, allocations: 11.48 kB / 0.5052 GB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.1178, allocations: 0 / 0.5052 GB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.1179, allocations: 0 / 0.5052 GB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.1179, allocations: 0 / 0.5052 GB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001346/0.118, allocations: 161.7 kB / 0.5053 GB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.118, allocations: 0 / 0.5053 GB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.301e-05/0.1181, allocations: 4 kB / 0.5053 GB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.127e-06/0.1181, allocations: 7.938 kB / 0.5053 GB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.778e-06/0.1181, allocations: 3.984 kB / 0.5053 GB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.1181, allocations: 0 / 0.5053 GB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1181, allocations: 0 / 0.5053 GB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001371/0.1183, allocations: 73.12 kB / 0.5054 GB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001289/0.1184, allocations: 85.11 kB / 0.5055 GB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.724e-05/0.1184, allocations: 7.969 kB / 0.5055 GB, free: 7.004 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.246e-05/0.1185, allocations: 7.938 kB / 0.5055 GB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.199e-05/0.1185, allocations: 3.938 kB / 0.5055 GB, free: 6.992 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/0.1185, allocations: 3.984 kB / 0.5055 GB, free: 6.988 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.49e-05/0.1185, allocations: 79.28 kB / 0.5056 GB, free: 6.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1185, allocations: 0 / 0.5056 GB, free: 6.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001866/0.1187, allocations: 8 kB / 0.5056 GB, free: 6.902 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.0004173/0.1192, allocations: 0.6085 MB / 0.5062 GB, free: 6.262 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.431e-05/0.1193, allocations: 27.86 kB / 0.5062 GB, free: 6.234 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1193, allocations: 0 / 0.5062 GB, free: 6.234 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.235e-05/0.1193, allocations: 4 kB / 0.5062 GB, free: 6.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001457/0.1194, allocations: 5.562 kB / 0.5062 GB, free: 6.227 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001472/0.1209, allocations: 1.172 MB / 0.5074 GB, free: 4.973 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000421/0.1213, allocations: 0.6843 MB / 0.508 GB, free: 4.262 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.713e-05/0.1214, allocations: 0 / 0.508 GB, free: 4.262 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.813e-05/0.1214, allocations: 7.438 kB / 0.5081 GB, free: 4.254 MB / 350.1 MB Notification: Performance of SimCode: time 1.723e-06/0.1214, allocations: 0 / 0.5081 GB, free: 4.254 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01976/0.1412, allocations: 1.122 MB / 0.5091 GB, free: 3.195 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.384/7.525, allocations: 7.984 kB / 0.5092 GB, free: 3.188 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)