Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001106/0.001106, allocations: 182 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.451/1.451, allocations: 194.3 MB / 208.4 MB, free: 6.711 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001735/0.001735, allocations: 116.7 kB / 253.5 MB, free: 9.578 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.508e-05/3.511e-05, allocations: 4 kB / 304.9 MB, free: 29.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07335/0.0734, allocations: 44.51 MB / 349.5 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3848/0.4583, allocations: 119.6 MB / 469 MB, free: 8.559 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001966/0.4585, allocations: 88.31 kB / 469.1 MB, free: 8.512 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4909/0.9494, allocations: 115.5 MB / 0.5709 GB, free: 72.33 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.9495, allocations: 0 / 0.5709 GB, free: 72.33 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003712/0.9498, allocations: 130.6 kB / 0.571 GB, free: 72.31 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1340 * Number of variables: 1340 Notification: Performance of Generate backend data structure: time 0.0146/0.9644, allocations: 4.858 MB / 0.5758 GB, free: 70.45 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.9645, allocations: 10.16 kB / 0.5758 GB, free: 70.45 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005838/0.9704, allocations: 0.9407 MB / 0.5767 GB, free: 70.15 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009863/0.9803, allocations: 4.371 MB / 0.5809 GB, free: 69.4 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002707/0.9806, allocations: 388.1 kB / 0.5813 GB, free: 69.39 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001317/0.9819, allocations: 0.4965 MB / 0.5818 GB, free: 69.38 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01243/0.9943, allocations: 6.521 MB / 0.5882 GB, free: 68.72 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000124/0.9945, allocations: 14.81 kB / 0.5882 GB, free: 68.71 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005245/0.995, allocations: 220.2 kB / 0.5884 GB, free: 68.71 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001627/0.9952, allocations: 228.6 kB / 0.5886 GB, free: 68.7 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009511/1.005, allocations: 5.209 MB / 0.5937 GB, free: 67.38 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03346/1.038, allocations: 21.03 MB / 0.6142 GB, free: 56.42 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006711/1.045, allocations: 8.446 MB / 0.6225 GB, free: 48.96 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002608/1.048, allocations: 1.995 MB / 0.6244 GB, free: 47.12 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009686/1.057, allocations: 5.966 MB / 0.6303 GB, free: 42.16 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.969e-05/1.057, allocations: 60.56 kB / 0.6303 GB, free: 42.09 MB / 394.7 MB Notification: Performance of pre-optimization done (n=205): time 3.356e-06/1.057, allocations: 0 / 0.6303 GB, free: 42.09 MB / 394.7 MB Notification: Performance of matching and sorting (n=229): time 0.01708/1.074, allocations: 9.235 MB / 0.6393 GB, free: 34.07 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.072e-05/1.074, allocations: 84.36 kB / 0.6394 GB, free: 33.98 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003402/1.078, allocations: 2.476 MB / 0.6418 GB, free: 31.73 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002102/1.078, allocations: 65.7 kB / 0.6419 GB, free: 31.66 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001016/1.079, allocations: 2.33 MB / 0.6442 GB, free: 29.58 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005494/1.08, allocations: 0.7873 MB / 0.6449 GB, free: 28.87 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001387/1.08, allocations: 60 kB / 0.645 GB, free: 28.81 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001222/1.08, allocations: 423.3 kB / 0.6454 GB, free: 28.43 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001545/1.082, allocations: 1.233 MB / 0.6466 GB, free: 27.29 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001799/1.083, allocations: 2.113 MB / 0.6487 GB, free: 24.94 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001901/1.085, allocations: 1.629 MB / 0.6503 GB, free: 23.52 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-05/1.085, allocations: 8 kB / 0.6503 GB, free: 23.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=376) (initialization): time 0.00605/1.091, allocations: 4.442 MB / 0.6546 GB, free: 19.52 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.989e-05/1.091, allocations: 23.95 kB / 0.6546 GB, free: 19.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.034e-05/1.091, allocations: 28 kB / 0.6547 GB, free: 19.47 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001485/1.093, allocations: 0.7144 MB / 0.6554 GB, free: 18.87 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002279/1.095, allocations: 0.6886 MB / 0.656 GB, free: 18.29 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007361/1.103, allocations: 9.381 MB / 0.6652 GB, free: 9.051 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002663/1.105, allocations: 187.7 kB / 0.6654 GB, free: 8.867 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002858/1.106, allocations: 128 kB / 0.6655 GB, free: 8.742 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (340): * Single equations (assignments): 334 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(6,72.2%) 22,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004473/1.106, allocations: 285.4 kB / 0.6658 GB, free: 8.457 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004348/1.106, allocations: 312.2 kB / 0.6661 GB, free: 8.148 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005952/1.112, allocations: 3.98 MB / 0.6699 GB, free: 4.102 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-05/1.112, allocations: 20 kB / 0.67 GB, free: 4.082 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.597e-05/1.112, allocations: 12 kB / 0.67 GB, free: 4.07 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.035e-05/1.113, allocations: 15.95 kB / 0.67 GB, free: 4.055 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0142/1.127, allocations: 8.587 MB / 0.6784 GB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.478e-06/1.127, allocations: 4 kB / 0.6784 GB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001781/1.129, allocations: 367.8 kB / 0.6787 GB, free: 11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002721/1.131, allocations: 0.9313 MB / 0.6796 GB, free: 10.05 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003524/1.132, allocations: 67.97 kB / 0.6797 GB, free: 9.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2297/1.361, allocations: 15.45 MB / 0.6948 GB, free: 77.48 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/1.361, allocations: 4.328 kB / 0.6948 GB, free: 77.48 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01/1.371, allocations: 5.852 MB / 0.7005 GB, free: 76.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001882/1.373, allocations: 0.6699 MB / 0.7012 GB, free: 76.51 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005075/1.374, allocations: 58 kB / 0.7012 GB, free: 76.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001574/1.375, allocations: 147.6 kB / 0.7014 GB, free: 76.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005026/1.376, allocations: 171.7 kB / 0.7015 GB, free: 76.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001736/1.376, allocations: 68.3 kB / 0.7016 GB, free: 76.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003158/1.379, allocations: 1.874 MB / 0.7034 GB, free: 76.34 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.71e-07/1.379, allocations: 0 / 0.7034 GB, free: 76.34 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004161/1.383, allocations: 1.011 MB / 0.7044 GB, free: 76.34 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (175): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,75.0%) 22,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001006/1.384, allocations: 0.5043 MB / 0.7049 GB, free: 76.22 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005261/1.39, allocations: 3.914 MB / 0.7087 GB, free: 75.52 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/1.39, allocations: 3.438 kB / 0.7087 GB, free: 75.52 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003487/1.393, allocations: 2.649 MB / 0.7113 GB, free: 74.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003627/1.397, allocations: 0.7662 MB / 0.7121 GB, free: 74.69 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01395/1.411, allocations: 7.851 MB / 0.7197 GB, free: 72.75 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002991/1.414, allocations: 3.394 MB / 0.723 GB, free: 71.89 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003015/1.417, allocations: 0.7361 MB / 0.7238 GB, free: 71.81 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006396/1.418, allocations: 216.7 kB / 0.724 GB, free: 71.8 MB / 410.7 MB Notification: Performance of SimCode: time 1.483e-06/1.418, allocations: 0 / 0.724 GB, free: 71.8 MB / 410.7 MB Notification: Performance of Templates: time 0.07673/1.494, allocations: 49.38 MB / 0.7722 GB, free: 57.35 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)