Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-05,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-05,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001124/0.001124, allocations: 164.5 kB / 7.636 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.322/1.322, allocations: 170.7 MB / 178.7 MB, free: 15.64 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001615/0.001615, allocations: 103.5 kB / 218 MB, free: 8.41 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.189e-05/2.192e-05, allocations: 4 kB / 262.2 MB, free: 26.39 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08218/0.08222, allocations: 38.77 MB / 301 MB, free: 3.633 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3974/0.4796, allocations: 116.2 MB / 417.2 MB, free: 1.117 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002378/0.4799, allocations: 89.56 kB / 417.3 MB, free: 1.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4933/0.9733, allocations: 117.1 MB / 0.5218 GB, free: 69.81 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.166e-06/0.9733, allocations: 3.938 kB / 0.5218 GB, free: 69.81 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007178/0.9741, allocations: 133.5 kB / 0.5219 GB, free: 69.79 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1354 * Number of variables: 1354 Notification: Performance of Generate backend data structure: time 0.01624/0.9903, allocations: 4.954 MB / 0.5268 GB, free: 65.34 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.9904, allocations: 12.03 kB / 0.5268 GB, free: 65.32 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004351/0.9947, allocations: 0.7854 MB / 0.5276 GB, free: 64.53 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009469/1.004, allocations: 3.65 MB / 0.5311 GB, free: 60.86 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000301/1.005, allocations: 168 kB / 0.5313 GB, free: 60.7 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001955/1.007, allocations: 315.8 kB / 0.5316 GB, free: 60.39 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01069/1.017, allocations: 4.703 MB / 0.5362 GB, free: 55.68 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01642/1.034, allocations: 5.768 MB / 0.5418 GB, free: 49.7 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003214/1.034, allocations: 12 kB / 0.5418 GB, free: 49.69 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001649/1.036, allocations: 7.953 kB / 0.5418 GB, free: 49.68 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002196/1.036, allocations: 234.2 kB / 0.542 GB, free: 49.45 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03797/1.074, allocations: 20.09 MB / 0.5617 GB, free: 29.01 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004034/1.078, allocations: 3.953 MB / 0.5655 GB, free: 24.76 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002375/1.08, allocations: 1.729 MB / 0.5672 GB, free: 23.03 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003665/1.081, allocations: 155 kB / 0.5674 GB, free: 22.86 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.637e-05/1.081, allocations: 60.52 kB / 0.5674 GB, free: 22.79 MB / 346.7 MB Notification: Performance of pre-optimization done (n=230): time 4.758e-06/1.081, allocations: 0 / 0.5674 GB, free: 22.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=279): time 0.01733/1.098, allocations: 9.304 MB / 0.5765 GB, free: 13.41 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.306e-05/1.098, allocations: 77.61 kB / 0.5766 GB, free: 13.32 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004203/1.102, allocations: 2.081 MB / 0.5786 GB, free: 11.23 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003528/1.103, allocations: 25.7 kB / 0.5786 GB, free: 11.2 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00133/1.104, allocations: 2.368 MB / 0.5809 GB, free: 8.805 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007881/1.105, allocations: 0.9199 MB / 0.5818 GB, free: 7.871 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002681/1.105, allocations: 0 / 0.5818 GB, free: 7.871 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002243/1.106, allocations: 437 kB / 0.5823 GB, free: 7.438 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002089/1.108, allocations: 1.346 MB / 0.5836 GB, free: 6.09 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002336/1.11, allocations: 2.257 MB / 0.5858 GB, free: 3.434 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002425/1.112, allocations: 1.77 MB / 0.5875 GB, free: 1.645 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.631e-05/1.112, allocations: 8 kB / 0.5875 GB, free: 1.637 MB / 346.7 MB Notification: Performance of matching and sorting (n=428) (initialization): time 0.2349/1.347, allocations: 4.771 MB / 0.5922 GB, free: 59.92 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.869e-05/1.347, allocations: 20.27 kB / 0.5922 GB, free: 59.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-05/1.348, allocations: 29.81 kB / 0.5922 GB, free: 59.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002584/1.35, allocations: 0.9745 MB / 0.5932 GB, free: 59.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003018/1.353, allocations: 0.7306 MB / 0.5939 GB, free: 59.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01344/1.367, allocations: 12.94 MB / 0.6065 GB, free: 53.69 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00327/1.37, allocations: 124.5 kB / 0.6066 GB, free: 53.69 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003384/1.37, allocations: 141.7 kB / 0.6068 GB, free: 53.69 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 130 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (368): * Single equations (assignments): 361 * 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: 5 * 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: 5 {(6,72.2%) 23,(1,100.0%) 1,(4,93.8%) 20,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005337/1.371, allocations: 200.7 kB / 0.607 GB, free: 53.58 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000507/1.371, allocations: 314.6 kB / 0.6073 GB, free: 53.58 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006589/1.378, allocations: 4.267 MB / 0.6114 GB, free: 53.13 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.048e-05/1.378, allocations: 30.48 kB / 0.6115 GB, free: 53.13 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.782e-05/1.378, allocations: 16.45 kB / 0.6115 GB, free: 53.13 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-05/1.378, allocations: 15.19 kB / 0.6115 GB, free: 53.13 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01596/1.394, allocations: 9.752 MB / 0.621 GB, free: 52.09 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.446e-05/1.394, allocations: 13.97 kB / 0.621 GB, free: 52.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001653/1.396, allocations: 434.6 kB / 0.6215 GB, free: 52.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002456/1.398, allocations: 1.049 MB / 0.6225 GB, free: 52.03 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002034/1.398, allocations: 26.56 kB / 0.6225 GB, free: 52.03 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01403/1.412, allocations: 16.28 MB / 0.6384 GB, free: 41.36 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.014e-05/1.412, allocations: 5.156 kB / 0.6384 GB, free: 41.36 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009129/1.422, allocations: 6.803 MB / 0.6451 GB, free: 37.65 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001846/1.423, allocations: 0.6897 MB / 0.6457 GB, free: 37.21 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006155/1.424, allocations: 22.92 kB / 0.6457 GB, free: 37.21 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00158/1.426, allocations: 112.8 kB / 0.6459 GB, free: 37.21 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004333/1.426, allocations: 211 kB / 0.6461 GB, free: 37.17 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000162/1.426, allocations: 81.83 kB / 0.6461 GB, free: 37.15 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002124/1.428, allocations: 1.531 MB / 0.6476 GB, free: 36.51 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.51e-07/1.428, allocations: 2.219 kB / 0.6476 GB, free: 36.51 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003966/1.432, allocations: 0.9404 MB / 0.6486 GB, free: 36.49 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.port_n.Phi.re,smpmM.stator.port_n.Phi.im,smpmM.stator.strayReluctance.Phi.re,smpmM.stator.strayReluctance.Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (215): * Single equations (assignments): 208 * 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%) 23,(4,93.8%) 18,(1,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007644/1.433, allocations: 449.5 kB / 0.649 GB, free: 36.38 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006112/1.439, allocations: 4.449 MB / 0.6533 GB, free: 34.3 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/1.439, allocations: 0 / 0.6533 GB, free: 34.3 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004163/1.444, allocations: 2.911 MB / 0.6562 GB, free: 32.79 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004727/1.448, allocations: 0.6823 MB / 0.6568 GB, free: 32.62 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01504/1.463, allocations: 8.186 MB / 0.6648 GB, free: 28.04 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002885/1.466, allocations: 3.525 MB / 0.6683 GB, free: 25.38 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002517/1.469, allocations: 0.7102 MB / 0.669 GB, free: 24.89 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005889/1.469, allocations: 207.4 kB / 0.6692 GB, free: 24.69 MB / 346.7 MB Notification: Performance of SimCode: time 1.142e-06/1.469, allocations: 0 / 0.6692 GB, free: 24.69 MB / 346.7 MB Notification: Performance of Templates: time 0.07149/1.541, allocations: 44.94 MB / 0.7131 GB, free: 5.152 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1)