Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.EquivalentCircuit.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.Machines.EquivalentCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Machines.EquivalentCircuit") translateModel(HanserModelica.Machines.EquivalentCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Machines.EquivalentCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007728/0.007728, allocations: 100.7 kB / 15.73 MB, free: 6.008 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.456/1.456, allocations: 222.9 MB / 239.4 MB, free: 4.531 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.001563/0.001562, allocations: 188.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.03627/0.03627, allocations: 8.782 MB / 348.6 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001787/0.001787, allocations: 75.88 kB / 463.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1079, allocations: 51.57 MB / 0.5034 GB, free: 9.465 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.EquivalentCircuit): time 0.01989/0.1278, allocations: 18.92 MB / 0.5219 GB, free: 6.457 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0142/0.1421, allocations: 5.027 MB / 0.5268 GB, free: 1.414 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005677/0.1478, allocations: 155.6 kB / 0.5269 GB, free: 1.262 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.3216/0.4695, allocations: 8.234 MB / 0.535 GB, free: 4.012 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008243/0.4777, allocations: 2.179 MB / 0.5371 GB, free: 3.938 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00474/0.4825, allocations: 1.578 MB / 0.5386 GB, free: 3.898 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01365/0.4962, allocations: 10.76 MB / 0.5491 GB, free: 2.336 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03998/0.5362, allocations: 25.31 MB / 0.5739 GB, free: 4.668 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01285/0.5491, allocations: 6.065 MB / 0.5798 GB, free: 15.07 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0125/0.5616, allocations: 6.778 MB / 0.5864 GB, free: 8.504 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005915/0.5676, allocations: 1.621 MB / 0.588 GB, free: 6.883 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007702/0.5753, allocations: 1.912 MB / 0.5899 GB, free: 4.977 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005538/0.5809, allocations: 3.289 MB / 0.5931 GB, free: 1.738 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01537/0.5963, allocations: 6.4 MB / 0.5993 GB, free: 11.36 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02969/0.626, allocations: 21.9 MB / 0.6207 GB, free: 5.855 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.6261, allocations: 3.938 kB / 0.6207 GB, free: 5.852 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.6261, allocations: 0 / 0.6207 GB, free: 5.852 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006468/0.6267, allocations: 0 / 0.6207 GB, free: 5.852 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3006 * Number of variables: 3006 Notification: Performance of Generate backend data structure: time 0.04264/0.6694, allocations: 13.77 MB / 0.6342 GB, free: 8.094 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.302e-05/0.6695, allocations: 15.97 kB / 0.6342 GB, free: 8.078 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04375/0.7132, allocations: 7.891 MB / 0.6419 GB, free: 272 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01492/0.7282, allocations: 6.762 MB / 0.6485 GB, free: 9.477 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009948/0.7292, allocations: 0.808 MB / 0.6493 GB, free: 8.676 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005561/0.7348, allocations: 1.062 MB / 0.6503 GB, free: 7.625 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05294/0.7878, allocations: 17.77 MB / 0.6677 GB, free: 5.828 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007269/0.7885, allocations: 7.906 kB / 0.6677 GB, free: 5.82 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006225/0.7948, allocations: 459.3 kB / 0.6681 GB, free: 5.383 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009124/0.7957, allocations: 0.5735 MB / 0.6687 GB, free: 4.805 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04219/0.8379, allocations: 16.21 MB / 0.6845 GB, free: 4.566 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5892/1.427, allocations: 52.69 MB / 0.7359 GB, free: 144.9 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0159/1.443, allocations: 15.75 MB / 0.7513 GB, free: 135.1 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006188/1.449, allocations: 3.759 MB / 0.755 GB, free: 135.1 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004465/1.45, allocations: 193.5 kB / 0.7552 GB, free: 135 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.35e-05/1.45, allocations: 88.3 kB / 0.7553 GB, free: 134.9 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=492): time 7.184e-06/1.45, allocations: 0 / 0.7553 GB, free: 134.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=492): time 0.02094/1.471, allocations: 10.62 MB / 0.7656 GB, free: 134.3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.311e-05/1.471, allocations: 130.2 kB / 0.7658 GB, free: 134.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004817/1.476, allocations: 3.501 MB / 0.7692 GB, free: 133.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0006821/1.477, allocations: 105.9 kB / 0.7693 GB, free: 133.9 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002489/1.479, allocations: 4.336 MB / 0.7735 GB, free: 131.5 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001638/1.481, allocations: 1.673 MB / 0.7751 GB, free: 130.5 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001837/1.483, allocations: 1.301 MB / 0.7764 GB, free: 130.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.728e-05/1.483, allocations: 309.1 kB / 0.7767 GB, free: 130 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003816/1.486, allocations: 3.265 MB / 0.7799 GB, free: 128.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005195/1.492, allocations: 5.61 MB / 0.7854 GB, free: 124.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009311/1.501, allocations: 9.519 MB / 0.7947 GB, free: 118.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.672e-05/1.501, allocations: 22.5 kB / 0.7947 GB, free: 118.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=864) (initialization): time 0.01421/1.515, allocations: 10.26 MB / 0.8047 GB, free: 114.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.875e-05/1.515, allocations: 39.22 kB / 0.8048 GB, free: 114.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001417/1.515, allocations: 75.19 kB / 0.8048 GB, free: 114.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002797/1.518, allocations: 1.081 MB / 0.8059 GB, free: 114.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004796/1.523, allocations: 1.517 MB / 0.8074 GB, free: 114.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01286/1.536, allocations: 13.62 MB / 0.8207 GB, free: 104.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00522/1.541, allocations: 0.8493 MB / 0.8215 GB, free: 103.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001213/1.542, allocations: 315.5 kB / 0.8218 GB, free: 103.7 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 341 * 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 (790): * Single equations (assignments): 784 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(4,30,100.0%), (1,13,100.0%), (1,13,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008197/1.551, allocations: 4.11 MB / 0.8258 GB, free: 99.53 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001369/1.552, allocations: 395 kB / 0.8262 GB, free: 99.14 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01407/1.566, allocations: 7.86 MB / 0.8339 GB, free: 91.22 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008738/1.575, allocations: 6.483 MB / 0.8402 GB, free: 84.69 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-05/1.575, allocations: 12 kB / 0.8402 GB, free: 84.68 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.703e-05/1.575, allocations: 31.83 kB / 0.8402 GB, free: 84.64 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03688/1.612, allocations: 17.52 MB / 0.8573 GB, free: 66.95 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.927e-05/1.612, allocations: 19.56 kB / 0.8574 GB, free: 66.94 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003547/1.616, allocations: 0.9556 MB / 0.8583 GB, free: 65.98 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002612/1.618, allocations: 0.9818 MB / 0.8593 GB, free: 64.99 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000675/1.619, allocations: 128 kB / 0.8594 GB, free: 64.87 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01317/1.632, allocations: 13.3 MB / 0.8724 GB, free: 51.06 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.444e-05/1.632, allocations: 23.88 kB / 0.8724 GB, free: 51.04 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0189/1.651, allocations: 12.1 MB / 0.8842 GB, free: 38.39 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002899/1.654, allocations: 1.119 MB / 0.8853 GB, free: 37.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001272/1.655, allocations: 108 kB / 0.8854 GB, free: 37.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003225/1.658, allocations: 323.7 kB / 0.8857 GB, free: 36.83 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009272/1.659, allocations: 399.7 kB / 0.8861 GB, free: 36.44 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004647/1.66, allocations: 175.8 kB / 0.8863 GB, free: 36.27 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004608/1.665, allocations: 2.358 MB / 0.8886 GB, free: 33.91 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.21e-07/1.665, allocations: 0 / 0.8886 GB, free: 33.91 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008696/1.673, allocations: 2.642 MB / 0.8911 GB, free: 31.26 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 2 (sineVoltage_m.plug_p.reference.gamma,sineVoltage_e.plug_p.reference.gamma) * 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 (501): * Single equations (assignments): 495 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(4,30,100.0%), (1,13,100.0%), (1,13,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009096/1.674, allocations: 324.5 kB / 0.8914 GB, free: 30.94 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01386/1.688, allocations: 8.614 MB / 0.8999 GB, free: 22.25 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.972e-05/1.688, allocations: 0 / 0.8999 GB, free: 22.25 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005938/1.694, allocations: 4.255 MB / 0.904 GB, free: 17.95 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006008/1.7, allocations: 0.944 MB / 0.9049 GB, free: 17.02 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03979/1.74, allocations: 18.88 MB / 0.9234 GB, free: 13.93 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01256/1.752, allocations: 7.019 MB / 0.9302 GB, free: 6.871 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007977/1.76, allocations: 2.53 MB / 0.9327 GB, free: 4.336 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002121/1.763, allocations: 375.4 kB / 0.9331 GB, free: 3.969 MB / 0.545 GB Notification: Performance of SimCode: time 1.523e-06/1.763, allocations: 4 kB / 0.9331 GB, free: 3.965 MB / 0.545 GB Notification: Performance of Templates: time 0.4243/2.187, allocations: 67.25 MB / 0.9987 GB, free: 153.3 MB / 0.5607 GB make -j1 -f HanserModelica_HanserModelica.Machines.EquivalentCircuit.makefile (rm -f HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe ; mkfifo HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe >> ../files/HanserModelica_HanserModelica.Machines.EquivalentCircuit.sim & ./HanserModelica_HanserModelica.Machines.EquivalentCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe 2>&1)