Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001573/0.001573, allocations: 182.7 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.37/1.37, allocations: 194.3 MB / 208.4 MB, free: 6.695 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.001637/0.001637, allocations: 108.7 kB / 253.5 MB, free: 9.582 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.426e-05/2.438e-05, allocations: 0 / 304.9 MB, free: 29.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07472/0.07476, allocations: 44.5 MB / 349.4 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3636/0.4385, allocations: 124.5 MB / 473.9 MB, free: 3.801 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000278/0.4388, allocations: 86.08 kB / 474 MB, free: 3.758 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4895/0.9283, allocations: 123.6 MB / 0.5837 GB, free: 74.12 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.9284, allocations: 0 / 0.5837 GB, free: 74.12 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003605/0.9288, allocations: 144.5 kB / 0.5838 GB, free: 74.1 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: 1406 * Number of variables: 1406 Notification: Performance of Generate backend data structure: time 0.01453/0.9433, allocations: 5.068 MB / 0.5887 GB, free: 72.15 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/0.9434, allocations: 10.94 kB / 0.5888 GB, free: 72.15 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005782/0.9492, allocations: 1.004 MB / 0.5897 GB, free: 71.83 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01172/0.9609, allocations: 4.563 MB / 0.5942 GB, free: 71.05 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000292/0.9612, allocations: 406.5 kB / 0.5946 GB, free: 71.04 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001308/0.9625, allocations: 0.5208 MB / 0.5951 GB, free: 71.03 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01175/0.9743, allocations: 6.795 MB / 0.6017 GB, free: 68.59 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001204/0.9745, allocations: 11.66 kB / 0.6017 GB, free: 68.58 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004838/0.975, allocations: 226.3 kB / 0.602 GB, free: 68.41 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001806/0.9752, allocations: 255.9 kB / 0.6022 GB, free: 68.38 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00861/0.9838, allocations: 5.386 MB / 0.6075 GB, free: 66.18 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02998/1.014, allocations: 22.42 MB / 0.6294 GB, free: 48.87 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006499/1.02, allocations: 8.237 MB / 0.6374 GB, free: 40.11 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003425/1.024, allocations: 2.096 MB / 0.6394 GB, free: 38.18 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01102/1.035, allocations: 6.269 MB / 0.6456 GB, free: 32.27 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.254e-05/1.035, allocations: 64.5 kB / 0.6456 GB, free: 32.2 MB / 394.7 MB Notification: Performance of pre-optimization done (n=224): time 3.968e-06/1.035, allocations: 0 / 0.6456 GB, free: 32.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=251): time 0.0193/1.054, allocations: 10.02 MB / 0.6554 GB, free: 22.12 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.67e-05/1.054, allocations: 77.41 kB / 0.6555 GB, free: 22.03 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003844/1.058, allocations: 2.704 MB / 0.6581 GB, free: 19.32 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002661/1.058, allocations: 73.58 kB / 0.6582 GB, free: 19.25 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00111/1.06, allocations: 2.484 MB / 0.6606 GB, free: 16.75 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005843/1.06, allocations: 0.8638 MB / 0.6615 GB, free: 15.89 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001521/1.06, allocations: 64 kB / 0.6615 GB, free: 15.83 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001353/1.06, allocations: 432.7 kB / 0.6619 GB, free: 15.4 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00168/1.062, allocations: 1.307 MB / 0.6632 GB, free: 14.09 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001972/1.064, allocations: 2.292 MB / 0.6655 GB, free: 11.37 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002078/1.066, allocations: 1.733 MB / 0.6672 GB, free: 9.609 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-05/1.066, allocations: 8 kB / 0.6672 GB, free: 9.602 MB / 394.7 MB Notification: Performance of matching and sorting (n=412) (initialization): time 0.006689/1.073, allocations: 4.738 MB / 0.6718 GB, free: 4.777 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.379e-05/1.073, allocations: 16 kB / 0.6718 GB, free: 4.762 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.258e-05/1.073, allocations: 32 kB / 0.6718 GB, free: 4.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001529/1.075, allocations: 0.7252 MB / 0.6725 GB, free: 3.988 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002605/1.077, allocations: 0.741 MB / 0.6733 GB, free: 3.246 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009939/1.087, allocations: 9.746 MB / 0.6828 GB, free: 8.965 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003303/1.09, allocations: 191.8 kB / 0.683 GB, free: 8.777 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005063/1.091, allocations: 140.1 kB / 0.6831 GB, free: 8.641 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 139 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (375): * Single equations (assignments): 369 * 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%) 23,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005683/1.092, allocations: 309.2 kB / 0.6834 GB, free: 8.332 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007976/1.092, allocations: 351.6 kB / 0.6837 GB, free: 7.984 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007537/1.1, allocations: 4.189 MB / 0.6878 GB, free: 3.672 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.163e-05/1.1, allocations: 28 kB / 0.6878 GB, free: 3.645 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.762e-05/1.1, allocations: 11.95 kB / 0.6879 GB, free: 3.633 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-05/1.1, allocations: 15.89 kB / 0.6879 GB, free: 3.617 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2808/1.381, allocations: 9.143 MB / 0.6968 GB, free: 79.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.245e-05/1.381, allocations: 3.719 kB / 0.6968 GB, free: 79.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001804/1.383, allocations: 397.8 kB / 0.6972 GB, free: 79.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002713/1.385, allocations: 0.9647 MB / 0.6981 GB, free: 79.83 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002187/1.386, allocations: 65.89 kB / 0.6982 GB, free: 79.83 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01475/1.4, allocations: 15.92 MB / 0.7137 GB, free: 70.79 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/1.401, allocations: 7.594 kB / 0.7137 GB, free: 70.79 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009167/1.41, allocations: 6.322 MB / 0.7199 GB, free: 69.65 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002366/1.412, allocations: 0.7213 MB / 0.7206 GB, free: 69.55 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004945/1.413, allocations: 58.05 kB / 0.7207 GB, free: 69.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001744/1.414, allocations: 155.5 kB / 0.7208 GB, free: 69.55 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005372/1.415, allocations: 186.5 kB / 0.721 GB, free: 69.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001546/1.415, allocations: 70.81 kB / 0.7211 GB, free: 69.55 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003256/1.418, allocations: 2.051 MB / 0.7231 GB, free: 69.39 MB / 410.7 MB Notification: Performance of sort global known variables: time 2e-07/1.418, allocations: 1.031 kB / 0.7231 GB, free: 69.39 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004003/1.422, allocations: 1.084 MB / 0.7241 GB, free: 69.39 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].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 (194): * Single equations (assignments): 187 * 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,72.2%) 23,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001036/1.423, allocations: 0.5763 MB / 0.7247 GB, free: 69.27 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006453/1.43, allocations: 4.115 MB / 0.7287 GB, free: 68.54 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.959e-06/1.43, allocations: 7.125 kB / 0.7287 GB, free: 68.54 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004124/1.434, allocations: 2.76 MB / 0.7314 GB, free: 67.71 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004866/1.439, allocations: 0.8727 MB / 0.7323 GB, free: 67.69 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0157/1.455, allocations: 8.224 MB / 0.7403 GB, free: 64.75 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003235/1.458, allocations: 3.51 MB / 0.7437 GB, free: 63.46 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003249/1.461, allocations: 0.7941 MB / 0.7445 GB, free: 63.36 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000704/1.462, allocations: 240 kB / 0.7447 GB, free: 63.35 MB / 410.7 MB Notification: Performance of SimCode: time 1.172e-06/1.462, allocations: 0 / 0.7447 GB, free: 63.35 MB / 410.7 MB Notification: Performance of Templates: time 0.09327/1.555, allocations: 54.19 MB / 0.7976 GB, free: 37.05 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1)