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.004476/0.004476, allocations: 108.4 kB / 15.74 MB, free: 6.449 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.442/1.442, allocations: 222.9 MB / 239.4 MB, free: 4.484 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.001653/0.001653, allocations: 192.5 kB / 289.7 MB, free: 2.195 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05777/0.05777, allocations: 8.788 MB / 348.7 MB, free: 4.598 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001659/0.001659, allocations: 79.88 kB / 463.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1121, allocations: 51.56 MB / 0.5029 GB, free: 9.984 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical1): time 0.001783/0.1139, allocations: 494.4 kB / 0.5034 GB, free: 9.504 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001722/0.1141, allocations: 27.89 kB / 0.5034 GB, free: 9.477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.15e-05/0.1142, allocations: 0 / 0.5034 GB, free: 9.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.649e-05/0.1142, allocations: 0 / 0.5034 GB, free: 9.477 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.051e-05/0.1143, allocations: 7.938 kB / 0.5034 GB, free: 9.469 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001322/0.1144, allocations: 0 / 0.5034 GB, free: 9.469 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.277e-05/0.1145, allocations: 8 kB / 0.5034 GB, free: 9.461 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.339e-05/0.1145, allocations: 11.92 kB / 0.5034 GB, free: 9.449 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.798e-05/0.1145, allocations: 0 / 0.5034 GB, free: 9.449 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.608e-05/0.1146, allocations: 7.984 kB / 0.5034 GB, free: 9.441 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.552e-05/0.1146, allocations: 0 / 0.5034 GB, free: 9.441 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.737e-06/0.1146, allocations: 0 / 0.5034 GB, free: 9.441 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.77e-05/0.1147, allocations: 3.938 kB / 0.5034 GB, free: 9.438 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.681e-05/0.1147, allocations: 8 kB / 0.5034 GB, free: 9.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.417e-05/0.1148, allocations: 7.922 kB / 0.5034 GB, free: 9.422 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1148, allocations: 4 kB / 0.5035 GB, free: 9.418 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1148, allocations: 0 / 0.5035 GB, free: 9.418 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.307e-06/0.1148, allocations: 0 / 0.5035 GB, free: 9.418 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.0003981/0.1152, allocations: 327.5 kB / 0.5038 GB, free: 9.047 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.1153, allocations: 12.03 kB / 0.5038 GB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.769e-05/0.1153, allocations: 30.75 kB / 0.5038 GB, free: 8.996 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.595e-05/0.1153, allocations: 0.9375 kB / 0.5038 GB, free: 8.996 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001377/0.1155, allocations: 172.3 kB / 0.504 GB, free: 8.789 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/0.1155, allocations: 4.312 kB / 0.504 GB, free: 8.785 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.959e-05/0.1155, allocations: 4.375 kB / 0.504 GB, free: 8.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001092/0.1157, allocations: 34.27 kB / 0.504 GB, free: 8.742 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.278e-06/0.1157, allocations: 3.938 kB / 0.504 GB, free: 8.738 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.887e-06/0.1157, allocations: 0 / 0.504 GB, free: 8.738 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.1157, allocations: 4 kB / 0.504 GB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.959e-05/0.1157, allocations: 7.984 kB / 0.504 GB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001806/0.1159, allocations: 154 kB / 0.5042 GB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.481e-05/0.116, allocations: 38.52 kB / 0.5042 GB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.38e-05/0.116, allocations: 16.94 kB / 0.5042 GB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.201e-05/0.1161, allocations: 0 / 0.5042 GB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/0.1161, allocations: 34.56 kB / 0.5043 GB, free: 8.418 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 9.12e-07/0.1161, allocations: 0 / 0.5043 GB, free: 8.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001603/0.1163, allocations: 57.56 kB / 0.5043 GB, free: 8.355 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.472e-05/0.1163, allocations: 55.34 kB / 0.5044 GB, free: 8.289 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.28e-05/0.1164, allocations: 93.86 kB / 0.5045 GB, free: 8.188 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.275e-05/0.1164, allocations: 29.7 kB / 0.5045 GB, free: 8.152 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.219e-05/0.1165, allocations: 84.14 kB / 0.5046 GB, free: 8.066 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.042e-05/0.1165, allocations: 19.73 kB / 0.5046 GB, free: 8.047 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.287e-05/0.1166, allocations: 17.72 kB / 0.5046 GB, free: 8.023 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.1167, allocations: 310.8 kB / 0.5049 GB, free: 7.711 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.506e-05/0.1167, allocations: 4 kB / 0.5049 GB, free: 7.707 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.534e-05/0.1167, allocations: 11.98 kB / 0.5049 GB, free: 7.695 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.977e-05/0.1168, allocations: 17.33 kB / 0.5049 GB, free: 7.676 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1168, allocations: 4 kB / 0.5049 GB, free: 7.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.821e-05/0.1168, allocations: 53.61 kB / 0.505 GB, free: 7.613 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/0.1169, allocations: 9.656 kB / 0.505 GB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.962e-06/0.1169, allocations: 0 / 0.505 GB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.1169, allocations: 0 / 0.505 GB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/0.117, allocations: 8 kB / 0.505 GB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.117, allocations: 0 / 0.505 GB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.913e-05/0.117, allocations: 4 kB / 0.505 GB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.787e-06/0.1171, allocations: 0 / 0.505 GB, free: 7.594 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.452e-05/0.1171, allocations: 121.7 kB / 0.5051 GB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.54e-05/0.1172, allocations: 15.83 kB / 0.5051 GB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.412e-05/0.1172, allocations: 3.5 kB / 0.5051 GB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.1172, allocations: 0 / 0.5051 GB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.331e-06/0.1172, allocations: 4 kB / 0.5051 GB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.1172, allocations: 0 / 0.5051 GB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001328/0.1173, allocations: 157.7 kB / 0.5053 GB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.1174, allocations: 0 / 0.5053 GB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.769e-05/0.1174, allocations: 8 kB / 0.5053 GB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.089e-06/0.1174, allocations: 7.875 kB / 0.5053 GB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.1175, allocations: 0 / 0.5053 GB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.546e-06/0.1175, allocations: 8 kB / 0.5053 GB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1175, allocations: 0 / 0.5053 GB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001392/0.1176, allocations: 81.05 kB / 0.5054 GB, free: 7.113 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.654e-05/0.1177, allocations: 77.11 kB / 0.5055 GB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.39e-05/0.1177, allocations: 3.938 kB / 0.5055 GB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.971e-05/0.1177, allocations: 0 / 0.5055 GB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.396e-05/0.1177, allocations: 7.969 kB / 0.5055 GB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-06/0.1177, allocations: 64 / 0.5055 GB, free: 7.008 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.852e-05/0.1178, allocations: 87.27 kB / 0.5056 GB, free: 6.922 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1178, allocations: 0 / 0.5056 GB, free: 6.922 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001847/0.118, allocations: 4 kB / 0.5056 GB, free: 6.918 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.0003865/0.1184, allocations: 0.6123 MB / 0.5062 GB, free: 6.273 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.985e-05/0.1185, allocations: 20.05 kB / 0.5062 GB, free: 6.254 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1185, allocations: 0 / 0.5062 GB, free: 6.254 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.567e-05/0.1185, allocations: 8 kB / 0.5062 GB, free: 6.246 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001422/0.1186, allocations: 4 kB / 0.5062 GB, free: 6.242 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000966/0.1196, allocations: 1.111 MB / 0.5073 GB, free: 5.051 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002748/0.1199, allocations: 0.6882 MB / 0.508 GB, free: 4.336 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.111e-05/0.1199, allocations: 0 / 0.508 GB, free: 4.336 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.195e-05/0.12, allocations: 7.438 kB / 0.508 GB, free: 4.328 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.12, allocations: 0 / 0.508 GB, free: 4.328 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01961/0.1396, allocations: 1.09 MB / 0.509 GB, free: 3.301 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.366/7.505, allocations: 7.484 kB / 0.509 GB, free: 3.297 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)