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.001146/0.001146, allocations: 108 kB / 16.36 MB, free: 6.285 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.427/1.427, allocations: 222.9 MB / 240 MB, free: 4.586 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.00126/0.00126, allocations: 200.4 kB / 290.3 MB, free: 2.305 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03519/0.03519, allocations: 8.797 MB / 349.3 MB, free: 4.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001673/0.001673, allocations: 80.8 kB / 412.5 MB, free: 41.72 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0949/0.0966, allocations: 51.56 MB / 464.1 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.EquivalentCircuit): time 0.02114/0.1178, allocations: 18.92 MB / 483 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01187/0.1297, allocations: 5.023 MB / 488 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005105/0.1348, allocations: 155.6 kB / 488.2 MB, free: 5.445 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01908/0.1539, allocations: 8.217 MB / 496.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008248/0.1622, allocations: 2.17 MB / 498.6 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004507/0.1667, allocations: 1.576 MB / 0.4884 GB, free: 9.461 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01206/0.1788, allocations: 10.76 MB / 0.4989 GB, free: 14.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0346/0.2135, allocations: 25.27 MB / 0.5236 GB, free: 5.195 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2362/0.4497, allocations: 6.05 MB / 0.5295 GB, free: 24.11 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01091/0.4606, allocations: 6.772 MB / 0.5361 GB, free: 23.7 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006348/0.467, allocations: 1.622 MB / 0.5377 GB, free: 23.7 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009217/0.4763, allocations: 1.909 MB / 0.5396 GB, free: 23.7 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007656/0.484, allocations: 3.298 MB / 0.5428 GB, free: 23.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02118/0.5052, allocations: 6.396 MB / 0.549 GB, free: 21.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02641/0.5316, allocations: 21.91 MB / 0.5704 GB, free: 12.08 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.997e-06/0.5317, allocations: 0 / 0.5704 GB, free: 12.08 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.766e-06/0.5317, allocations: 3.5 kB / 0.5704 GB, free: 12.08 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0009478/0.5327, allocations: 0.8438 kB / 0.5704 GB, free: 12.08 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.05218/0.5848, allocations: 13.78 MB / 0.5839 GB, free: 3.656 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.954e-05/0.5849, allocations: 9.938 kB / 0.5839 GB, free: 3.656 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04281/0.6277, allocations: 7.88 MB / 0.5916 GB, free: 13.3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01905/0.6468, allocations: 6.753 MB / 0.5982 GB, free: 6.797 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001016/0.6479, allocations: 0.8198 MB / 0.599 GB, free: 5.984 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005906/0.6538, allocations: 1.065 MB / 0.6 GB, free: 4.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05698/0.7108, allocations: 17.77 MB / 0.6174 GB, free: 3.141 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000661/0.7115, allocations: 11.91 kB / 0.6174 GB, free: 3.129 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005187/0.7168, allocations: 450.7 kB / 0.6178 GB, free: 2.699 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007492/0.7175, allocations: 0.5774 MB / 0.6184 GB, free: 2.117 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03915/0.7567, allocations: 16.21 MB / 0.6342 GB, free: 1.883 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1055/0.8623, allocations: 52.7 MB / 0.6857 GB, free: 12.92 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01668/0.879, allocations: 15.75 MB / 0.7011 GB, free: 11.71 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005893/0.8849, allocations: 3.753 MB / 0.7047 GB, free: 7.969 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004942/0.8854, allocations: 197.6 kB / 0.7049 GB, free: 7.773 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.255e-05/0.8856, allocations: 82.95 kB / 0.705 GB, free: 7.684 MB / 494.1 MB Notification: Performance of pre-optimization done (n=492): time 1.139e-05/0.8856, allocations: 0 / 0.705 GB, free: 7.684 MB / 494.1 MB Notification: Performance of matching and sorting (n=492): time 0.318/1.204, allocations: 10.61 MB / 0.7153 GB, free: 158.9 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001192/1.204, allocations: 127.6 kB / 0.7155 GB, free: 158.8 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007549/1.211, allocations: 3.496 MB / 0.7189 GB, free: 158.5 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009887/1.212, allocations: 109 kB / 0.719 GB, free: 158.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003248/1.216, allocations: 4.33 MB / 0.7232 GB, free: 156.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002097/1.218, allocations: 1.674 MB / 0.7249 GB, free: 155.3 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002168/1.22, allocations: 1.304 MB / 0.7261 GB, free: 155.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.908e-05/1.22, allocations: 301.1 kB / 0.7264 GB, free: 154.9 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005289/1.225, allocations: 3.27 MB / 0.7296 GB, free: 154.9 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006358/1.232, allocations: 5.613 MB / 0.7351 GB, free: 152.1 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0103/1.242, allocations: 9.519 MB / 0.7444 GB, free: 146.6 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001356/1.242, allocations: 25.56 kB / 0.7444 GB, free: 146.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=864) (initialization): time 0.01542/1.258, allocations: 10.26 MB / 0.7544 GB, free: 142.7 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001024/1.258, allocations: 38.75 kB / 0.7545 GB, free: 142.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000171/1.258, allocations: 75.62 kB / 0.7545 GB, free: 142.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002846/1.261, allocations: 1.093 MB / 0.7556 GB, free: 142.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005243/1.266, allocations: 1.514 MB / 0.7571 GB, free: 142.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01431/1.28, allocations: 13.61 MB / 0.7704 GB, free: 133 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00611/1.286, allocations: 0.8498 MB / 0.7712 GB, free: 132.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001579/1.288, allocations: 318 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.009466/1.298, allocations: 4.117 MB / 0.7755 GB, free: 129.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001631/1.299, allocations: 395.7 kB / 0.7759 GB, free: 128.7 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0157/1.315, allocations: 7.862 MB / 0.7836 GB, free: 122.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009292/1.324, allocations: 6.479 MB / 0.7899 GB, free: 115.8 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.728e-05/1.324, allocations: 19.55 kB / 0.7899 GB, free: 115.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.214e-05/1.324, allocations: 24.59 kB / 0.79 GB, free: 115.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0385/1.363, allocations: 17.52 MB / 0.8071 GB, free: 98.09 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.169e-05/1.363, allocations: 12 kB / 0.8071 GB, free: 98.08 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003471/1.366, allocations: 0.9478 MB / 0.808 GB, free: 97.13 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002798/1.369, allocations: 0.9855 MB / 0.809 GB, free: 96.14 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009609/1.37, allocations: 134.1 kB / 0.8091 GB, free: 96.01 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01329/1.384, allocations: 13.31 MB / 0.8221 GB, free: 82.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.399e-05/1.384, allocations: 27.91 kB / 0.8221 GB, free: 82.17 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01937/1.403, allocations: 12.09 MB / 0.8339 GB, free: 69.54 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003591/1.407, allocations: 1.122 MB / 0.835 GB, free: 68.39 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001485/1.408, allocations: 112 kB / 0.8351 GB, free: 68.29 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003437/1.412, allocations: 320.6 kB / 0.8354 GB, free: 67.97 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001113/1.413, allocations: 399.7 kB / 0.8358 GB, free: 67.58 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006191/1.413, allocations: 168 kB / 0.836 GB, free: 67.41 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005073/1.419, allocations: 2.358 MB / 0.8383 GB, free: 65.06 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.31e-07/1.419, allocations: 0 / 0.8383 GB, free: 65.06 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01057/1.429, allocations: 2.656 MB / 0.8409 GB, free: 62.39 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.001368/1.431, allocations: 327.9 kB / 0.8412 GB, free: 62.07 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01388/1.444, allocations: 8.608 MB / 0.8496 GB, free: 53.38 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.072e-05/1.444, allocations: 4.812 kB / 0.8496 GB, free: 53.37 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007324/1.452, allocations: 4.261 MB / 0.8537 GB, free: 49.06 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007682/1.459, allocations: 0.9311 MB / 0.8547 GB, free: 48.16 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04483/1.504, allocations: 18.88 MB / 0.8731 GB, free: 29.07 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01493/1.519, allocations: 7.018 MB / 0.8799 GB, free: 22.02 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.008093/1.527, allocations: 2.53 MB / 0.8824 GB, free: 19.48 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002233/1.53, allocations: 375.4 kB / 0.8828 GB, free: 19.11 MB / 494.1 MB Notification: Performance of SimCode: time 1.973e-06/1.53, allocations: 0 / 0.8828 GB, free: 19.11 MB / 494.1 MB Notification: Performance of Templates: time 0.4212/1.951, allocations: 64.66 MB / 0.9459 GB, free: 125.8 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 cvode -lv LOG_STATS > HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe 2>&1)