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.001289/0.001289, allocations: 105.9 kB / 16.41 MB, free: 6.457 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.355/1.355, allocations: 222.9 MB / 240.1 MB, free: 4.395 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.00148/0.00148, allocations: 192.4 kB / 290.4 MB, free: 2.117 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03382/0.03382, allocations: 8.802 MB / 349.3 MB, free: 4.582 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 79.88 kB / 464.6 MB, free: 13.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.114, allocations: 51.57 MB / 0.5041 GB, free: 9.457 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.EquivalentCircuit): time 0.02153/0.1356, allocations: 18.92 MB / 0.5225 GB, free: 6.445 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01189/0.1476, allocations: 5.031 MB / 0.5275 GB, free: 1.398 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004626/0.1522, allocations: 155.6 kB / 0.5276 GB, free: 1.246 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2748/0.4271, allocations: 8.202 MB / 0.5356 GB, free: 4 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007916/0.4351, allocations: 2.157 MB / 0.5377 GB, free: 3.934 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004608/0.4397, allocations: 1.589 MB / 0.5393 GB, free: 3.887 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01445/0.4542, allocations: 10.76 MB / 0.5498 GB, free: 2.305 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04676/0.501, allocations: 25.36 MB / 0.5745 GB, free: 4.941 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01243/0.5135, allocations: 6.062 MB / 0.5805 GB, free: 15.35 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01334/0.5268, allocations: 6.773 MB / 0.5871 GB, free: 8.785 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007132/0.534, allocations: 1.625 MB / 0.5887 GB, free: 7.16 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01111/0.5452, allocations: 1.913 MB / 0.5905 GB, free: 5.254 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008376/0.5536, allocations: 3.29 MB / 0.5937 GB, free: 2.016 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0148/0.5685, allocations: 6.396 MB / 0.6 GB, free: 11.66 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02993/0.5984, allocations: 21.91 MB / 0.6214 GB, free: 6.137 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/0.5985, allocations: 0 / 0.6214 GB, free: 6.137 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.5985, allocations: 0 / 0.6214 GB, free: 6.137 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006116/0.5991, allocations: 0 / 0.6214 GB, free: 6.137 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.06263/0.6618, allocations: 13.78 MB / 0.6348 GB, free: 8.367 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.915e-05/0.6618, allocations: 12.03 kB / 0.6349 GB, free: 8.355 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07014/0.732, allocations: 7.876 MB / 0.6426 GB, free: 0.5547 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01637/0.7484, allocations: 6.76 MB / 0.6492 GB, free: 9.77 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009006/0.7493, allocations: 0.8154 MB / 0.6499 GB, free: 8.961 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00586/0.7552, allocations: 1.066 MB / 0.651 GB, free: 7.906 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04861/0.8039, allocations: 17.76 MB / 0.6683 GB, free: 6.117 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004751/0.8044, allocations: 15.89 kB / 0.6683 GB, free: 6.102 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003812/0.8082, allocations: 452 kB / 0.6688 GB, free: 5.672 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000686/0.8089, allocations: 0.5813 MB / 0.6693 GB, free: 5.086 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03809/0.847, allocations: 16.21 MB / 0.6852 GB, free: 4.852 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6036/1.451, allocations: 52.69 MB / 0.7366 GB, free: 121.8 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01668/1.467, allocations: 15.75 MB / 0.752 GB, free: 112.1 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005897/1.473, allocations: 3.755 MB / 0.7557 GB, free: 112.1 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004074/1.474, allocations: 195.2 kB / 0.7559 GB, free: 112 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.341e-05/1.474, allocations: 90.83 kB / 0.756 GB, free: 111.9 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=492): time 7.364e-06/1.474, allocations: 0.5 kB / 0.756 GB, free: 111.9 MB / 0.5138 GB Notification: Performance of matching and sorting (n=492): time 0.01892/1.493, allocations: 10.62 MB / 0.7663 GB, free: 111.2 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.078e-05/1.493, allocations: 125.1 kB / 0.7664 GB, free: 111.1 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005472/1.498, allocations: 3.499 MB / 0.7699 GB, free: 110.8 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0008556/1.499, allocations: 104.7 kB / 0.77 GB, free: 110.8 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002496/1.502, allocations: 4.335 MB / 0.7742 GB, free: 107.9 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001692/1.503, allocations: 1.668 MB / 0.7758 GB, free: 106.6 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001862/1.505, allocations: 1.307 MB / 0.7771 GB, free: 106 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 6.677e-05/1.505, allocations: 309.1 kB / 0.7774 GB, free: 105.7 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004158/1.51, allocations: 3.274 MB / 0.7806 GB, free: 104.6 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005444/1.515, allocations: 5.604 MB / 0.7861 GB, free: 100.5 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01113/1.526, allocations: 9.518 MB / 0.7954 GB, free: 93.69 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001218/1.526, allocations: 23.53 kB / 0.7954 GB, free: 93.69 MB / 0.5138 GB Notification: Performance of matching and sorting (n=864) (initialization): time 0.02033/1.547, allocations: 10.26 MB / 0.8054 GB, free: 88.34 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001544/1.547, allocations: 39.19 kB / 0.8054 GB, free: 88.34 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001854/1.547, allocations: 76.59 kB / 0.8055 GB, free: 88.33 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003541/1.551, allocations: 1.086 MB / 0.8066 GB, free: 87.64 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006016/1.557, allocations: 1.529 MB / 0.8081 GB, free: 86.11 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01404/1.571, allocations: 13.6 MB / 0.8213 GB, free: 72.01 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00572/1.577, allocations: 0.8593 MB / 0.8222 GB, free: 71.14 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001533/1.578, allocations: 312.1 kB / 0.8225 GB, free: 70.84 MB / 0.5138 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.008962/1.587, allocations: 4.11 MB / 0.8265 GB, free: 66.71 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001613/1.589, allocations: 408 kB / 0.8269 GB, free: 66.31 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01342/1.602, allocations: 7.848 MB / 0.8345 GB, free: 58.41 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008786/1.611, allocations: 6.49 MB / 0.8409 GB, free: 51.86 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.105e-05/1.611, allocations: 12 kB / 0.8409 GB, free: 51.85 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.934e-05/1.611, allocations: 23.91 kB / 0.8409 GB, free: 51.83 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03444/1.646, allocations: 17.52 MB / 0.858 GB, free: 34.13 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-05/1.646, allocations: 20.2 kB / 0.858 GB, free: 34.11 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00342/1.649, allocations: 0.9517 MB / 0.859 GB, free: 33.16 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002618/1.652, allocations: 0.9875 MB / 0.8599 GB, free: 32.17 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006353/1.652, allocations: 128 kB / 0.8601 GB, free: 32.04 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01258/1.665, allocations: 13.3 MB / 0.873 GB, free: 18.23 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.237e-05/1.665, allocations: 19.94 kB / 0.8731 GB, free: 18.21 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.018/1.683, allocations: 12.11 MB / 0.8849 GB, free: 5.562 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003178/1.686, allocations: 1.119 MB / 0.886 GB, free: 4.418 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001159/1.687, allocations: 108 kB / 0.8861 GB, free: 4.312 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003113/1.691, allocations: 323.6 kB / 0.8864 GB, free: 3.996 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009062/1.692, allocations: 407.7 kB / 0.8868 GB, free: 3.598 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003687/1.692, allocations: 164 kB / 0.8869 GB, free: 3.438 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003168/1.695, allocations: 2.358 MB / 0.8892 GB, free: 1.082 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.41e-07/1.695, allocations: 0 / 0.8892 GB, free: 1.082 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.008999/1.704, allocations: 2.649 MB / 0.8918 GB, free: 14.42 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.001342/1.705, allocations: 320.7 kB / 0.8921 GB, free: 14.11 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01617/1.722, allocations: 8.618 MB / 0.9005 GB, free: 5.414 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.718e-05/1.722, allocations: 4 kB / 0.9005 GB, free: 5.41 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.008046/1.73, allocations: 4.249 MB / 0.9047 GB, free: 1.117 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007841/1.738, allocations: 0.941 MB / 0.9056 GB, free: 200 kB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04349/1.781, allocations: 18.57 MB / 0.9237 GB, free: 13.41 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01665/1.798, allocations: 6.796 MB / 0.9304 GB, free: 6.574 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002792/1.801, allocations: 427.3 kB / 0.9308 GB, free: 6.156 MB / 0.5607 GB Notification: Performance of SimCode: time 1.312e-06/1.801, allocations: 0 / 0.9308 GB, free: 6.156 MB / 0.5607 GB Notification: Performance of Templates: time 1.054/2.855, allocations: 354.3 MB / 1.277 GB, free: 93.66 MB / 0.5763 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)