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.001111/0.001111, allocations: 114.3 kB / 16.37 MB, free: 5.539 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.347/1.347, allocations: 222.9 MB / 240 MB, free: 4.352 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.001398/0.001398, allocations: 188.2 kB / 290.3 MB, free: 2.07 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03417/0.03417, allocations: 8.807 MB / 349.3 MB, free: 4.562 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 75.62 kB / 412.5 MB, free: 41.62 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08699/0.08894, allocations: 51.57 MB / 464.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.EquivalentCircuit): time 0.01963/0.1086, allocations: 18.91 MB / 483 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0127/0.1214, allocations: 5.027 MB / 488 MB, free: 5.469 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005632/0.1271, allocations: 155.6 kB / 488.2 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01979/0.1469, allocations: 8.224 MB / 496.4 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00879/0.1557, allocations: 2.155 MB / 498.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005076/0.1608, allocations: 1.581 MB / 0.4884 GB, free: 9.332 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01352/0.1743, allocations: 10.76 MB / 0.4989 GB, free: 14.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04486/0.2192, allocations: 25.27 MB / 0.5236 GB, free: 5.062 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2049/0.4242, allocations: 6.05 MB / 0.5295 GB, free: 24.16 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01097/0.4352, allocations: 6.775 MB / 0.5361 GB, free: 23.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005698/0.4409, allocations: 1.622 MB / 0.5377 GB, free: 23.75 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006797/0.4477, allocations: 1.908 MB / 0.5396 GB, free: 23.75 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007497/0.4553, allocations: 3.303 MB / 0.5428 GB, free: 23.37 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01391/0.4692, allocations: 6.398 MB / 0.5491 GB, free: 21.88 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02083/0.4901, allocations: 21.9 MB / 0.5704 GB, free: 12.05 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.4901, allocations: 1.062 kB / 0.5704 GB, free: 12.05 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4901, allocations: 0 / 0.5704 GB, free: 12.05 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0008045/0.4909, allocations: 0 / 0.5704 GB, free: 12.05 MB / 366.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.04472/0.5357, allocations: 13.78 MB / 0.5839 GB, free: 3.625 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.5357, allocations: 9.531 kB / 0.5839 GB, free: 3.625 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04397/0.5797, allocations: 7.881 MB / 0.5916 GB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01771/0.5975, allocations: 6.764 MB / 0.5982 GB, free: 6.656 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007986/0.5983, allocations: 0.8098 MB / 0.599 GB, free: 5.855 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004327/0.6026, allocations: 1.065 MB / 0.6 GB, free: 4.801 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04373/0.6464, allocations: 17.77 MB / 0.6174 GB, free: 3.008 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004085/0.6468, allocations: 11.91 kB / 0.6174 GB, free: 2.996 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002991/0.6498, allocations: 449.2 kB / 0.6178 GB, free: 2.566 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005814/0.6504, allocations: 0.5735 MB / 0.6184 GB, free: 1.988 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03523/0.6857, allocations: 16.21 MB / 0.6342 GB, free: 1.754 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.105/0.7907, allocations: 52.7 MB / 0.6857 GB, free: 12.78 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01689/0.8076, allocations: 15.74 MB / 0.7011 GB, free: 11.58 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006382/0.8141, allocations: 3.748 MB / 0.7047 GB, free: 7.836 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005681/0.8147, allocations: 193.4 kB / 0.7049 GB, free: 7.641 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.718e-05/0.8148, allocations: 94.61 kB / 0.705 GB, free: 7.543 MB / 494.1 MB Notification: Performance of pre-optimization done (n=492): time 1.054e-05/0.8148, allocations: 3.984 kB / 0.705 GB, free: 7.539 MB / 494.1 MB Notification: Performance of matching and sorting (n=492): time 0.2095/1.024, allocations: 10.61 MB / 0.7154 GB, free: 159.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.526e-05/1.024, allocations: 130.2 kB / 0.7155 GB, free: 159.1 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005661/1.03, allocations: 3.496 MB / 0.7189 GB, free: 158.9 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008479/1.031, allocations: 105.7 kB / 0.719 GB, free: 158.9 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002616/1.034, allocations: 4.329 MB / 0.7232 GB, free: 156.7 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001874/1.035, allocations: 1.673 MB / 0.7249 GB, free: 155.7 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002217/1.038, allocations: 1.303 MB / 0.7261 GB, free: 155.6 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.095e-05/1.038, allocations: 304.4 kB / 0.7264 GB, free: 155.3 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004816/1.043, allocations: 3.27 MB / 0.7296 GB, free: 155.3 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006301/1.049, allocations: 5.612 MB / 0.7351 GB, free: 152.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01192/1.061, allocations: 9.522 MB / 0.7444 GB, free: 146.7 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002518/1.061, allocations: 25.47 kB / 0.7444 GB, free: 146.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=864) (initialization): time 0.0209/1.082, allocations: 10.26 MB / 0.7544 GB, free: 142.7 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001818/1.082, allocations: 44.84 kB / 0.7545 GB, free: 142.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002066/1.082, allocations: 72.88 kB / 0.7546 GB, free: 142.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003096/1.086, allocations: 1.082 MB / 0.7556 GB, free: 142.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005738/1.091, allocations: 1.521 MB / 0.7571 GB, free: 142.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0137/1.105, allocations: 13.61 MB / 0.7704 GB, free: 133.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005715/1.111, allocations: 0.8415 MB / 0.7712 GB, free: 132.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001568/1.112, allocations: 321.4 kB / 0.7715 GB, free: 132.5 MB / 494.1 MB 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.008151/1.121, allocations: 4.115 MB / 0.7755 GB, free: 129 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001339/1.122, allocations: 395.1 kB / 0.7759 GB, free: 128.7 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01345/1.135, allocations: 7.857 MB / 0.7836 GB, free: 122.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009946/1.145, allocations: 6.492 MB / 0.7899 GB, free: 115.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.989e-05/1.146, allocations: 16.62 kB / 0.7899 GB, free: 115.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.913e-05/1.146, allocations: 27.89 kB / 0.79 GB, free: 115.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03468/1.18, allocations: 17.52 MB / 0.8071 GB, free: 98.05 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-05/1.18, allocations: 16 kB / 0.8071 GB, free: 98.04 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003595/1.184, allocations: 0.9561 MB / 0.808 GB, free: 97.08 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002689/1.187, allocations: 0.9825 MB / 0.809 GB, free: 96.09 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000773/1.187, allocations: 120 kB / 0.8091 GB, free: 95.97 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01267/1.2, allocations: 13.31 MB / 0.8221 GB, free: 82.16 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.017e-05/1.2, allocations: 23.88 kB / 0.8221 GB, free: 82.13 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01534/1.216, allocations: 12.1 MB / 0.8339 GB, free: 69.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003135/1.219, allocations: 1.115 MB / 0.835 GB, free: 68.36 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001309/1.22, allocations: 109 kB / 0.8351 GB, free: 68.25 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003093/1.223, allocations: 323.7 kB / 0.8354 GB, free: 67.93 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008974/1.224, allocations: 399.6 kB / 0.8358 GB, free: 67.54 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004939/1.225, allocations: 171 kB / 0.836 GB, free: 67.38 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004749/1.229, allocations: 2.362 MB / 0.8383 GB, free: 65.02 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.229, allocations: 0 / 0.8383 GB, free: 65.02 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.009085/1.239, allocations: 2.648 MB / 0.8409 GB, free: 62.36 MB / 494.1 MB 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.001428/1.24, allocations: 324 kB / 0.8412 GB, free: 62.04 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01412/1.254, allocations: 8.61 MB / 0.8496 GB, free: 53.34 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.85e-05/1.254, allocations: 0 / 0.8496 GB, free: 53.34 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007091/1.261, allocations: 4.267 MB / 0.8538 GB, free: 49.03 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006175/1.267, allocations: 0.9477 MB / 0.8547 GB, free: 48.11 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03974/1.307, allocations: 18.86 MB / 0.8731 GB, free: 29.03 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01614/1.323, allocations: 7.019 MB / 0.88 GB, free: 21.98 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.008513/1.332, allocations: 2.533 MB / 0.8824 GB, free: 19.44 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002219/1.334, allocations: 375.4 kB / 0.8828 GB, free: 19.07 MB / 494.1 MB Notification: Performance of SimCode: time 1.353e-06/1.334, allocations: 0 / 0.8828 GB, free: 19.07 MB / 494.1 MB Notification: Performance of Templates: time 0.3206/1.655, allocations: 64.67 MB / 0.9459 GB, free: 126 MB / 494.1 MB 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 -s gbode -lv LOG_STATS > HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe 2>&1)