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: translateModel(HanserModelica.FirstSteps.Electrical2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.FirstSteps.Electrical2") translateModel(HanserModelica.FirstSteps.Electrical2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.FirstSteps.Electrical2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006424/0.006424, allocations: 103.2 kB / 15.73 MB, free: 6.004 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.393/1.393, allocations: 222.9 MB / 239.4 MB, free: 4.539 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.00153/0.00153, allocations: 188.5 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.03622/0.03622, allocations: 8.785 MB / 348.6 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001523/0.001523, allocations: 79.88 kB / 463.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1163, allocations: 51.57 MB / 0.5034 GB, free: 9.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical2): time 0.001777/0.1181, allocations: 0.4945 MB / 0.5039 GB, free: 9.012 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001555/0.1183, allocations: 19.91 kB / 0.5039 GB, free: 8.992 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.21e-05/0.1183, allocations: 0 / 0.5039 GB, free: 8.992 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.522e-05/0.1184, allocations: 4 kB / 0.5039 GB, free: 8.988 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.038e-05/0.1184, allocations: 3.938 kB / 0.5039 GB, free: 8.984 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001286/0.1186, allocations: 11.98 kB / 0.5039 GB, free: 8.973 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.447e-05/0.1186, allocations: 11.94 kB / 0.5039 GB, free: 8.961 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.127e-05/0.1187, allocations: 4 kB / 0.5039 GB, free: 8.957 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.36e-05/0.1187, allocations: 11.92 kB / 0.5039 GB, free: 8.945 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.85e-05/0.1188, allocations: 11.98 kB / 0.5039 GB, free: 8.934 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.363e-05/0.1188, allocations: 0 / 0.5039 GB, free: 8.934 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.875e-06/0.1188, allocations: 0 / 0.5039 GB, free: 8.934 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.675e-05/0.1188, allocations: 3.938 kB / 0.5039 GB, free: 8.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.533e-05/0.1189, allocations: 4 kB / 0.5039 GB, free: 8.926 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.501e-05/0.1189, allocations: 15.86 kB / 0.504 GB, free: 8.91 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.585e-06/0.119, allocations: 0 / 0.504 GB, free: 8.91 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.119, allocations: 4 kB / 0.504 GB, free: 8.906 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.119, allocations: 0 / 0.504 GB, free: 8.906 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.0003977/0.1194, allocations: 331.5 kB / 0.5043 GB, free: 8.531 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.1194, allocations: 8.031 kB / 0.5043 GB, free: 8.523 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.121e-05/0.1195, allocations: 0.9375 kB / 0.5043 GB, free: 8.523 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.1196, allocations: 168.3 kB / 0.5044 GB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.1196, allocations: 4.375 kB / 0.5045 GB, free: 8.316 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.083e-05/0.1196, allocations: 4.375 kB / 0.5045 GB, free: 8.312 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.286e-05/0.1197, allocations: 38.25 kB / 0.5045 GB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.1197, allocations: 192 / 0.5045 GB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.1197, allocations: 3.938 kB / 0.5045 GB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.169e-06/0.1198, allocations: 0 / 0.5045 GB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.077e-05/0.1198, allocations: 12 kB / 0.5045 GB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001657/0.12, allocations: 153.7 kB / 0.5047 GB, free: 8.055 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.469e-05/0.1201, allocations: 42.53 kB / 0.5047 GB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.903e-05/0.1201, allocations: 12.86 kB / 0.5047 GB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.1201, allocations: 4 kB / 0.5047 GB, free: 7.984 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.551e-05/0.1202, allocations: 34.56 kB / 0.5047 GB, free: 7.941 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.1202, allocations: 0 / 0.5047 GB, free: 7.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.000156/0.1203, allocations: 49.72 kB / 0.5048 GB, free: 7.887 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.893e-05/0.1204, allocations: 55.34 kB / 0.5048 GB, free: 7.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.25e-05/0.1205, allocations: 97.84 kB / 0.5049 GB, free: 7.715 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.429e-05/0.1205, allocations: 33.64 kB / 0.505 GB, free: 7.676 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.044e-05/0.1205, allocations: 84.14 kB / 0.5051 GB, free: 7.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.972e-05/0.1206, allocations: 11.81 kB / 0.5051 GB, free: 7.578 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.764e-05/0.1206, allocations: 17.7 kB / 0.5051 GB, free: 7.555 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.1207, allocations: 314.8 kB / 0.5054 GB, free: 7.238 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.837e-05/0.1207, allocations: 8 kB / 0.5054 GB, free: 7.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.518e-06/0.1207, allocations: 0 / 0.5054 GB, free: 7.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.075e-05/0.1208, allocations: 24.84 kB / 0.5054 GB, free: 7.203 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.1208, allocations: 4 kB / 0.5054 GB, free: 7.199 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.907e-05/0.1209, allocations: 41.7 kB / 0.5055 GB, free: 7.152 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.1209, allocations: 8 kB / 0.5055 GB, free: 7.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.81e-06/0.1209, allocations: 7.875 kB / 0.5055 GB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.1209, allocations: 0 / 0.5055 GB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.544e-05/0.121, allocations: 11.98 kB / 0.5055 GB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.121, allocations: 0 / 0.5055 GB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.735e-05/0.1211, allocations: 0 / 0.5055 GB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.747e-06/0.1211, allocations: 4 kB / 0.5055 GB, free: 7.121 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 6.723e-05/0.1211, allocations: 113.8 kB / 0.5056 GB, free: 7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.666e-06/0.1212, allocations: 7.844 kB / 0.5056 GB, free: 6.992 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.126e-05/0.1212, allocations: 15.44 kB / 0.5056 GB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-06/0.1212, allocations: 0 / 0.5056 GB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.1212, allocations: 0 / 0.5056 GB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.1212, allocations: 3.984 kB / 0.5056 GB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.616e-05/0.1213, allocations: 153.7 kB / 0.5058 GB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.1213, allocations: 0 / 0.5058 GB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.889e-05/0.1214, allocations: 11.98 kB / 0.5058 GB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.1214, allocations: 0 / 0.5058 GB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.988e-06/0.1214, allocations: 3.938 kB / 0.5058 GB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1214, allocations: 0 / 0.5058 GB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.1214, allocations: 4 kB / 0.5058 GB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001215/0.1215, allocations: 81.58 kB / 0.5059 GB, free: 6.652 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.152e-05/0.1216, allocations: 85.08 kB / 0.5059 GB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.437e-05/0.1216, allocations: 7.922 kB / 0.506 GB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.895e-05/0.1216, allocations: 4 kB / 0.506 GB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.244e-05/0.1217, allocations: 0 / 0.506 GB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.96e-06/0.1217, allocations: 4.031 kB / 0.506 GB, free: 6.535 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.069e-05/0.1217, allocations: 79.22 kB / 0.506 GB, free: 6.457 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1217, allocations: 4.062 kB / 0.506 GB, free: 6.453 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001897/0.1219, allocations: 4 kB / 0.506 GB, free: 6.449 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 8.133e-05/0.122, allocations: 95.25 kB / 0.5061 GB, free: 6.344 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.506e-05/0.1221, allocations: 19.92 kB / 0.5062 GB, free: 6.324 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1221, allocations: 0 / 0.5062 GB, free: 6.324 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.462e-05/0.1221, allocations: 8 kB / 0.5062 GB, free: 6.316 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001441/0.1223, allocations: 5.406 kB / 0.5062 GB, free: 6.312 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003839/0.1227, allocations: 176.9 kB / 0.5063 GB, free: 6.113 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002133/0.1229, allocations: 0.6805 MB / 0.507 GB, free: 5.406 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.656e-05/0.1229, allocations: 0 / 0.507 GB, free: 5.406 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.227e-05/0.1229, allocations: 15.38 kB / 0.507 GB, free: 5.391 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1229, allocations: 0 / 0.507 GB, free: 5.391 MB / 350.1 MB Notification: Performance of Templates: time 0.002017/0.125, allocations: 253.1 kB / 0.5073 GB, free: 5.145 MB / 350.1 MB make -j1 -f HanserModelica_HanserModelica.FirstSteps.Electrical2.makefile (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 & ./HanserModelica_HanserModelica.FirstSteps.Electrical2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe 2>&1)