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.005224/0.005224, allocations: 101.9 kB / 15.73 MB, free: 6.043 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.372/1.372, allocations: 222.9 MB / 239.4 MB, free: 4.559 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.001274/0.001274, allocations: 204.3 kB / 289.7 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04551/0.04552, allocations: 8.794 MB / 348.6 MB, free: 4.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001623/0.001623, allocations: 79.88 kB / 463.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09347/0.09511, allocations: 51.56 MB / 0.5034 GB, free: 9.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical2): time 0.001692/0.09684, allocations: 0.5105 MB / 0.5039 GB, free: 9.039 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001092/0.09697, allocations: 19.91 kB / 0.5039 GB, free: 9.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.044e-05/0.097, allocations: 0 / 0.5039 GB, free: 9.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.077e-06/0.09701, allocations: 0 / 0.5039 GB, free: 9.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.209e-05/0.09707, allocations: 7.922 kB / 0.5039 GB, free: 9.012 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.384e-05/0.09718, allocations: 7.984 kB / 0.5039 GB, free: 9.004 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.127e-05/0.09724, allocations: 15.88 kB / 0.5039 GB, free: 8.988 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.398e-05/0.09729, allocations: 12 kB / 0.5039 GB, free: 8.977 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.896e-05/0.09731, allocations: 7.984 kB / 0.5039 GB, free: 8.969 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.835e-05/0.09735, allocations: 0 / 0.5039 GB, free: 8.969 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.395e-05/0.09737, allocations: 4 kB / 0.5039 GB, free: 8.965 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.757e-06/0.09739, allocations: 3.938 kB / 0.5039 GB, free: 8.961 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.245e-05/0.0974, allocations: 7.938 kB / 0.504 GB, free: 8.953 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.961e-05/0.09743, allocations: 4 kB / 0.504 GB, free: 8.949 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 4.747e-05/0.09748, allocations: 15.91 kB / 0.504 GB, free: 8.934 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.09749, allocations: 0 / 0.504 GB, free: 8.934 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.09749, allocations: 0 / 0.504 GB, free: 8.934 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.0975, allocations: 0 / 0.504 GB, free: 8.934 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.0003292/0.09784, allocations: 331.5 kB / 0.5043 GB, free: 8.559 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.09788, allocations: 8.031 kB / 0.5043 GB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.941e-05/0.09792, allocations: 4.938 kB / 0.5043 GB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001298/0.09805, allocations: 164.3 kB / 0.5045 GB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.31e-05/0.09807, allocations: 384 / 0.5045 GB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.13e-05/0.0981, allocations: 4.375 kB / 0.5045 GB, free: 8.344 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.434e-05/0.09818, allocations: 38.25 kB / 0.5045 GB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-06/0.09819, allocations: 192 / 0.5045 GB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.966e-06/0.0982, allocations: 3.938 kB / 0.5045 GB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.326e-06/0.09822, allocations: 4 kB / 0.5045 GB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.109e-05/0.09825, allocations: 7.938 kB / 0.5045 GB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001497/0.09841, allocations: 153.7 kB / 0.5047 GB, free: 8.086 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.446e-05/0.09848, allocations: 38.61 kB / 0.5047 GB, free: 8.039 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.814e-05/0.09851, allocations: 16.84 kB / 0.5047 GB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.948e-06/0.09853, allocations: 0 / 0.5047 GB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.183e-05/0.09856, allocations: 34.56 kB / 0.5047 GB, free: 7.977 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 8.42e-07/0.09856, allocations: 0 / 0.5047 GB, free: 7.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001337/0.0987, allocations: 57.66 kB / 0.5048 GB, free: 7.914 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.971e-05/0.09874, allocations: 63.28 kB / 0.5049 GB, free: 7.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.793e-05/0.0988, allocations: 93.84 kB / 0.5049 GB, free: 7.738 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.413e-05/0.09882, allocations: 29.7 kB / 0.505 GB, free: 7.703 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.309e-05/0.09886, allocations: 84.14 kB / 0.5051 GB, free: 7.617 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.059e-05/0.09889, allocations: 7.812 kB / 0.5051 GB, free: 7.609 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.125e-05/0.09892, allocations: 25.7 kB / 0.5051 GB, free: 7.578 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.41e-05/0.09902, allocations: 310.8 kB / 0.5054 GB, free: 7.266 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.693e-05/0.09905, allocations: 8 kB / 0.5054 GB, free: 7.258 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.251e-05/0.09906, allocations: 8 kB / 0.5054 GB, free: 7.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.928e-05/0.09911, allocations: 20.84 kB / 0.5054 GB, free: 7.227 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.09912, allocations: 0 / 0.5054 GB, free: 7.227 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.732e-05/0.09919, allocations: 45.64 kB / 0.5055 GB, free: 7.176 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.09921, allocations: 9.406 kB / 0.5055 GB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.09922, allocations: 3.938 kB / 0.5055 GB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.09924, allocations: 4 kB / 0.5055 GB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.165e-05/0.09932, allocations: 11.98 kB / 0.5055 GB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.09933, allocations: 0 / 0.5055 GB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.628e-05/0.09935, allocations: 0 / 0.5055 GB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.367e-06/0.09936, allocations: 0 / 0.5055 GB, free: 7.148 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.17e-05/0.09943, allocations: 117.8 kB / 0.5056 GB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.498e-06/0.09944, allocations: 3.906 kB / 0.5056 GB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.29e-05/0.09947, allocations: 7.438 kB / 0.5056 GB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.09948, allocations: 0 / 0.5056 GB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.09949, allocations: 7.984 kB / 0.5056 GB, free: 7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.0995, allocations: 4 kB / 0.5056 GB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.747e-05/0.09959, allocations: 149.7 kB / 0.5058 GB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.0996, allocations: 0 / 0.5058 GB, free: 6.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.889e-05/0.09967, allocations: 15.92 kB / 0.5058 GB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.09968, allocations: 0 / 0.5058 GB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.09969, allocations: 3.938 kB / 0.5058 GB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.644e-06/0.0997, allocations: 0 / 0.5058 GB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.0997, allocations: 0 / 0.5058 GB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001236/0.09983, allocations: 77.64 kB / 0.5059 GB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.258e-05/0.09987, allocations: 85.03 kB / 0.5059 GB, free: 6.586 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.354e-05/0.09989, allocations: 7.969 kB / 0.506 GB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.027e-05/0.09992, allocations: 0 / 0.506 GB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.335e-05/0.09994, allocations: 7.969 kB / 0.506 GB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.494e-06/0.09994, allocations: 0 / 0.506 GB, free: 6.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.506e-05/0.09998, allocations: 83.28 kB / 0.506 GB, free: 6.488 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09999, allocations: 0 / 0.506 GB, free: 6.488 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001771/0.1002, allocations: 4 kB / 0.506 GB, free: 6.484 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 7.439e-05/0.1002, allocations: 99.25 kB / 0.5061 GB, free: 6.375 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.094e-05/0.1003, allocations: 23.92 kB / 0.5062 GB, free: 6.352 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.1003, allocations: 0 / 0.5062 GB, free: 6.352 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.424e-05/0.1004, allocations: 4 kB / 0.5062 GB, free: 6.348 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001252/0.1005, allocations: 4 kB / 0.5062 GB, free: 6.344 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000344/0.1008, allocations: 180.8 kB / 0.5063 GB, free: 6.141 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002298/0.1011, allocations: 0.6883 MB / 0.507 GB, free: 5.426 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.277e-05/0.1011, allocations: 0 / 0.507 GB, free: 5.426 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.745e-05/0.1011, allocations: 7.438 kB / 0.507 GB, free: 5.418 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1011, allocations: 0 / 0.507 GB, free: 5.418 MB / 350.1 MB Notification: Performance of Templates: time 0.001882/0.103, allocations: 253.1 kB / 0.5073 GB, free: 5.172 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)