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.001253/0.001253, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.358/1.358, allocations: 222.9 MB / 239 MB, free: 4.707 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.001848/0.001848, allocations: 192.4 kB / 289.3 MB, free: 2.449 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03233/0.03233, allocations: 8.801 MB / 348.2 MB, free: 4.828 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 79.2 kB / 410.6 MB, free: 42.34 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1092, allocations: 51.56 MB / 462.1 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.EquivalentCircuit): time 0.01868/0.1279, allocations: 18.58 MB / 480.7 MB, free: 12.06 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01109/0.139, allocations: 4.973 MB / 485.7 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005316/0.1444, allocations: 147.6 kB / 485.8 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01811/0.1625, allocations: 7.81 MB / 493.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01026/0.1728, allocations: 1.94 MB / 495.6 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005533/0.1784, allocations: 1.477 MB / 497.1 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01404/0.1924, allocations: 10.69 MB / 0.4958 GB, free: 0.9648 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0529/0.2454, allocations: 29.36 MB / 0.5245 GB, free: 3.434 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2319/0.4773, allocations: 6.122 MB / 0.5305 GB, free: 27.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01123/0.4886, allocations: 6.858 MB / 0.5372 GB, free: 26.97 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008433/0.4971, allocations: 1.623 MB / 0.5388 GB, free: 26.97 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01419/0.5113, allocations: 1.905 MB / 0.5406 GB, free: 26.97 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008169/0.5195, allocations: 3.314 MB / 0.5439 GB, free: 26.6 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01424/0.5338, allocations: 6.4 MB / 0.5501 GB, free: 25.1 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0231/0.5569, allocations: 21.81 MB / 0.5714 GB, free: 13.71 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.557, allocations: 4 kB / 0.5714 GB, free: 13.71 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.557, allocations: 0 / 0.5714 GB, free: 13.71 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0008219/0.5578, allocations: 4.75 kB / 0.5714 GB, free: 13.71 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.6025, allocations: 13.83 MB / 0.5849 GB, free: 5.234 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.6026, allocations: 8.031 kB / 0.5849 GB, free: 5.227 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04108/0.6437, allocations: 7.858 MB / 0.5926 GB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01545/0.6592, allocations: 6.557 MB / 0.599 GB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009784/0.6602, allocations: 0.8078 MB / 0.5998 GB, free: 6.344 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004821/0.665, allocations: 1.062 MB / 0.6008 GB, free: 5.289 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06284/0.7279, allocations: 17.81 MB / 0.6182 GB, free: 3.461 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006737/0.7286, allocations: 15.91 kB / 0.6183 GB, free: 3.445 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005542/0.7342, allocations: 449.9 kB / 0.6187 GB, free: 3.016 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006824/0.7349, allocations: 0.574 MB / 0.6192 GB, free: 2.438 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04263/0.7775, allocations: 16.25 MB / 0.6351 GB, free: 2.16 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.117/0.8946, allocations: 53.31 MB / 0.6872 GB, free: 12.59 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2968/1.191, allocations: 15.82 MB / 0.7026 GB, free: 140.6 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006436/1.198, allocations: 3.828 MB / 0.7064 GB, free: 140.6 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004969/1.198, allocations: 196.3 kB / 0.7066 GB, free: 140.5 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.697e-05/1.199, allocations: 87.17 kB / 0.7066 GB, free: 140.4 MB / 478.1 MB Notification: Performance of pre-optimization done (n=504): time 6.713e-06/1.199, allocations: 0 / 0.7066 GB, free: 140.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=504): time 0.02249/1.221, allocations: 10.85 MB / 0.7172 GB, free: 139.8 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.671e-05/1.221, allocations: 135.1 kB / 0.7174 GB, free: 139.7 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0056/1.227, allocations: 3.494 MB / 0.7208 GB, free: 139.4 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001007/1.228, allocations: 107.1 kB / 0.7209 GB, free: 139.4 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003676/1.232, allocations: 4.321 MB / 0.7251 GB, free: 136.4 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003305/1.235, allocations: 1.709 MB / 0.7268 GB, free: 135.1 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002767/1.238, allocations: 1.315 MB / 0.728 GB, free: 134.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.001e-05/1.238, allocations: 306.7 kB / 0.7283 GB, free: 134.2 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005673/1.243, allocations: 3.345 MB / 0.7316 GB, free: 133 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006208/1.25, allocations: 5.691 MB / 0.7372 GB, free: 128.9 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01084/1.26, allocations: 9.663 MB / 0.7466 GB, free: 122.9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.166e-05/1.261, allocations: 23.56 kB / 0.7466 GB, free: 122.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=876) (initialization): time 0.01685/1.277, allocations: 10.42 MB / 0.7568 GB, free: 117.9 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.556e-05/1.278, allocations: 40 kB / 0.7568 GB, free: 117.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001494/1.278, allocations: 73 kB / 0.7569 GB, free: 117.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002791/1.281, allocations: 1.086 MB / 0.758 GB, free: 116.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005207/1.286, allocations: 1.521 MB / 0.7594 GB, free: 115.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01365/1.299, allocations: 13.55 MB / 0.7727 GB, free: 102.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005953/1.306, allocations: 0.8638 MB / 0.7735 GB, free: 102 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001659/1.307, allocations: 316 kB / 0.7738 GB, free: 101.7 MB / 478.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 (796): * Single equations (assignments): 784 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.009439/1.317, allocations: 4.12 MB / 0.7778 GB, free: 97.55 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001835/1.318, allocations: 395 kB / 0.7782 GB, free: 97.16 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01393/1.332, allocations: 8.018 MB / 0.7861 GB, free: 89.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007966/1.34, allocations: 6.636 MB / 0.7925 GB, free: 82.41 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.458e-05/1.341, allocations: 15.81 kB / 0.7926 GB, free: 82.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.214e-05/1.341, allocations: 27.89 kB / 0.7926 GB, free: 82.38 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02765/1.368, allocations: 17.94 MB / 0.8101 GB, free: 64.19 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.26e-05/1.368, allocations: 20.25 kB / 0.8101 GB, free: 64.17 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003192/1.371, allocations: 0.9556 MB / 0.811 GB, free: 63.21 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002328/1.374, allocations: 0.9701 MB / 0.812 GB, free: 62.23 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006389/1.374, allocations: 132 kB / 0.8121 GB, free: 62.11 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01117/1.386, allocations: 13.28 MB / 0.8251 GB, free: 48.31 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.023e-05/1.386, allocations: 27.81 kB / 0.8251 GB, free: 48.28 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01487/1.401, allocations: 12.38 MB / 0.8372 GB, free: 35.38 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002399/1.403, allocations: 1.137 MB / 0.8383 GB, free: 34.22 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007468/1.404, allocations: 108 kB / 0.8384 GB, free: 34.11 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002386/1.406, allocations: 323.6 kB / 0.8387 GB, free: 33.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006612/1.407, allocations: 403.7 kB / 0.8391 GB, free: 33.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000267/1.407, allocations: 164 kB / 0.8393 GB, free: 33.24 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002821/1.41, allocations: 2.362 MB / 0.8416 GB, free: 30.88 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.9e-07/1.41, allocations: 0 / 0.8416 GB, free: 30.88 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006708/1.417, allocations: 2.648 MB / 0.8442 GB, free: 28.22 MB / 478.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 (507): * Single equations (assignments): 495 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.0008787/1.418, allocations: 329.6 kB / 0.8445 GB, free: 27.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02397/1.442, allocations: 15.31 MB / 0.8594 GB, free: 12.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.688e-05/1.442, allocations: 0 / 0.8594 GB, free: 12.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005797/1.447, allocations: 4.338 MB / 0.8637 GB, free: 8.121 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005161/1.453, allocations: 0.9486 MB / 0.8646 GB, free: 7.188 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.284/1.737, allocations: 23.67 MB / 0.8877 GB, free: 142.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01483/1.752, allocations: 7.015 MB / 0.8945 GB, free: 141.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.008096/1.76, allocations: 2.539 MB / 0.897 GB, free: 141.5 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001535/1.761, allocations: 377 kB / 0.8974 GB, free: 141.5 MB / 494.1 MB Notification: Performance of SimCode: time 1.523e-06/1.761, allocations: 0 / 0.8974 GB, free: 141.5 MB / 494.1 MB Notification: Performance of Templates: time 0.1292/1.89, allocations: 70.97 MB / 0.9667 GB, free: 99.43 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 -lv LOG_STATS > HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe 2>&1)