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.001389/0.001389, allocations: 110.2 kB / 16.41 MB, free: 6.488 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.433/1.433, allocations: 222.9 MB / 240.1 MB, free: 4.379 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.001533/0.001533, allocations: 188.5 kB / 290.4 MB, free: 2.105 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03415/0.03415, allocations: 8.803 MB / 349.3 MB, free: 4.574 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 79.88 kB / 464.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1053, allocations: 51.56 MB / 0.5041 GB, free: 9.438 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.EquivalentCircuit): time 0.01814/0.1235, allocations: 18.92 MB / 0.5225 GB, free: 6.43 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01074/0.1343, allocations: 5.023 MB / 0.5274 GB, free: 1.391 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003766/0.1381, allocations: 155.6 kB / 0.5276 GB, free: 1.238 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2769/0.415, allocations: 8.211 MB / 0.5356 GB, free: 3.961 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009095/0.4241, allocations: 2.159 MB / 0.5377 GB, free: 3.895 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004195/0.4283, allocations: 1.581 MB / 0.5393 GB, free: 3.855 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01291/0.4412, allocations: 10.77 MB / 0.5498 GB, free: 2.266 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03745/0.4787, allocations: 25.3 MB / 0.5745 GB, free: 4.695 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01081/0.4896, allocations: 6.068 MB / 0.5804 GB, free: 15.09 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01192/0.5015, allocations: 6.774 MB / 0.587 GB, free: 8.52 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005034/0.5066, allocations: 1.621 MB / 0.5886 GB, free: 6.898 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008237/0.5149, allocations: 1.907 MB / 0.5905 GB, free: 4.996 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005876/0.5208, allocations: 3.297 MB / 0.5937 GB, free: 1.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01431/0.5351, allocations: 6.394 MB / 0.5999 GB, free: 11.38 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02771/0.5629, allocations: 21.91 MB / 0.6213 GB, free: 5.863 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.215e-06/0.5629, allocations: 0 / 0.6213 GB, free: 5.863 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.563, allocations: 0 / 0.6213 GB, free: 5.863 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006896/0.5637, allocations: 4 kB / 0.6213 GB, free: 5.859 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.04561/0.6093, allocations: 13.77 MB / 0.6348 GB, free: 8.098 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.6093, allocations: 8.031 kB / 0.6348 GB, free: 8.09 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04472/0.6541, allocations: 7.878 MB / 0.6425 GB, free: 296 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01596/0.6701, allocations: 6.758 MB / 0.6491 GB, free: 9.5 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001113/0.6712, allocations: 0.8146 MB / 0.6499 GB, free: 8.695 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005347/0.6766, allocations: 1.06 MB / 0.6509 GB, free: 7.645 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05203/0.7287, allocations: 17.77 MB / 0.6683 GB, free: 5.848 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005886/0.7293, allocations: 15.89 kB / 0.6683 GB, free: 5.832 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004555/0.7339, allocations: 449.1 kB / 0.6687 GB, free: 5.402 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007458/0.7346, allocations: 0.5774 MB / 0.6693 GB, free: 4.82 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03894/0.7736, allocations: 16.21 MB / 0.6851 GB, free: 4.582 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5938/1.367, allocations: 52.69 MB / 0.7366 GB, free: 144.7 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01666/1.384, allocations: 15.75 MB / 0.752 GB, free: 135 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00715/1.391, allocations: 3.755 MB / 0.7556 GB, free: 134.9 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004776/1.392, allocations: 194.8 kB / 0.7558 GB, free: 134.8 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.256e-05/1.392, allocations: 86.16 kB / 0.7559 GB, free: 134.8 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=492): time 7.294e-06/1.392, allocations: 0 / 0.7559 GB, free: 134.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=492): time 0.02527/1.417, allocations: 10.62 MB / 0.7663 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/1.417, allocations: 133.5 kB / 0.7664 GB, free: 134 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00538/1.423, allocations: 3.496 MB / 0.7698 GB, free: 133.8 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001005/1.424, allocations: 105.3 kB / 0.7699 GB, free: 133.7 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003027/1.427, allocations: 4.337 MB / 0.7741 GB, free: 131.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001988/1.429, allocations: 1.672 MB / 0.7758 GB, free: 130.3 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001992/1.431, allocations: 1.304 MB / 0.777 GB, free: 130.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.559e-05/1.431, allocations: 301.1 kB / 0.7773 GB, free: 129.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004234/1.435, allocations: 3.276 MB / 0.7805 GB, free: 128.8 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005799/1.441, allocations: 5.608 MB / 0.786 GB, free: 124.7 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01004/1.451, allocations: 9.513 MB / 0.7953 GB, free: 118.7 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.629e-05/1.451, allocations: 22.44 kB / 0.7953 GB, free: 118.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=864) (initialization): time 0.01562/1.467, allocations: 10.26 MB / 0.8053 GB, free: 114.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 6.098e-05/1.467, allocations: 35.31 kB / 0.8054 GB, free: 114.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001247/1.467, allocations: 86.09 kB / 0.8055 GB, free: 114.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00265/1.47, allocations: 1.085 MB / 0.8065 GB, free: 114.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005174/1.475, allocations: 1.515 MB / 0.808 GB, free: 114.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01433/1.489, allocations: 13.61 MB / 0.8213 GB, free: 104.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005498/1.495, allocations: 0.8438 MB / 0.8221 GB, free: 103.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001347/1.496, allocations: 318.7 kB / 0.8224 GB, free: 103.6 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.008055/1.504, allocations: 4.114 MB / 0.8264 GB, free: 99.45 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001265/1.506, allocations: 395 kB / 0.8268 GB, free: 99.06 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01265/1.518, allocations: 7.856 MB / 0.8345 GB, free: 91.14 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008362/1.527, allocations: 6.487 MB / 0.8408 GB, free: 84.61 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.676e-05/1.527, allocations: 15.98 kB / 0.8408 GB, free: 84.59 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.254e-05/1.527, allocations: 26.53 kB / 0.8409 GB, free: 84.57 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02918/1.556, allocations: 17.52 MB / 0.858 GB, free: 66.87 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.814e-05/1.556, allocations: 16 kB / 0.858 GB, free: 66.86 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003592/1.56, allocations: 0.9556 MB / 0.8589 GB, free: 65.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002489/1.562, allocations: 0.9778 MB / 0.8599 GB, free: 64.91 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000694/1.563, allocations: 132 kB / 0.86 GB, free: 64.79 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01247/1.575, allocations: 13.31 MB / 0.873 GB, free: 50.98 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-05/1.575, allocations: 23.88 kB / 0.873 GB, free: 50.95 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01754/1.593, allocations: 12.1 MB / 0.8848 GB, free: 38.31 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002808/1.596, allocations: 1.119 MB / 0.8859 GB, free: 37.17 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001421/1.597, allocations: 112 kB / 0.886 GB, free: 37.06 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00337/1.601, allocations: 323.7 kB / 0.8863 GB, free: 36.74 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001083/1.602, allocations: 399.7 kB / 0.8867 GB, free: 36.35 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006358/1.602, allocations: 164 kB / 0.8869 GB, free: 36.19 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003995/1.606, allocations: 2.362 MB / 0.8892 GB, free: 33.83 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9.02e-07/1.606, allocations: 0 / 0.8892 GB, free: 33.83 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008869/1.615, allocations: 2.653 MB / 0.8918 GB, free: 31.17 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.001319/1.617, allocations: 312.7 kB / 0.8921 GB, free: 30.86 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01295/1.63, allocations: 8.615 MB / 0.9005 GB, free: 22.17 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-05/1.63, allocations: 4 kB / 0.9005 GB, free: 22.16 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006389/1.636, allocations: 4.241 MB / 0.9046 GB, free: 17.88 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006665/1.643, allocations: 0.9479 MB / 0.9056 GB, free: 16.95 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03317/1.676, allocations: 18.56 MB / 0.9237 GB, free: 14.17 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009208/1.685, allocations: 6.803 MB / 0.9303 GB, free: 7.328 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001959/1.687, allocations: 423.3 kB / 0.9307 GB, free: 6.914 MB / 0.545 GB Notification: Performance of SimCode: time 1.062e-06/1.687, allocations: 4 kB / 0.9307 GB, free: 6.91 MB / 0.545 GB Notification: Performance of Templates: time 0.9194/2.607, allocations: 354.3 MB / 1.277 GB, free: 113.4 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)