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/ModelicaServices 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/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 105.9 kB / 16.5 MB, free: 6.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009807/0.0009808, allocations: 193.9 kB / 17.42 MB, free: 6.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.279/1.279, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 51.92 kB / 279.3 MB, free: 3.586 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08906/0.09025, allocations: 46.63 MB / 326 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02138/0.1117, allocations: 21.39 MB / 347.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0118/0.1235, allocations: 6.368 MB / 353.7 MB, free: 9 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004038/0.1276, allocations: 115.5 kB / 353.8 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003801/0.1315, allocations: 1.259 MB / 355.1 MB, free: 7.621 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005626/0.1371, allocations: 1.849 MB / 356.9 MB, free: 5.762 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003016/0.1401, allocations: 1.197 MB / 358.1 MB, free: 4.562 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00846/0.1486, allocations: 7.084 MB / 365.2 MB, free: 13.45 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005553/0.1542, allocations: 4.607 MB / 369.8 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003776/0.158, allocations: 2.498 MB / 372.3 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005023/0.163, allocations: 3.354 MB / 375.7 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001467/0.1645, allocations: 496 kB / 376.2 MB, free: 2.398 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002538/0.167, allocations: 0.7925 MB / 377 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1766/0.3437, allocations: 1.675 MB / 378.6 MB, free: 20.3 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006859/0.3506, allocations: 3.18 MB / 381.8 MB, free: 20.05 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01247/0.3631, allocations: 10.43 MB / 392.3 MB, free: 18.93 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.366e-06/0.3631, allocations: 1.406 kB / 392.3 MB, free: 18.93 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3631, allocations: 2.875 kB / 392.3 MB, free: 18.93 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003246/0.3635, allocations: 0 / 392.3 MB, free: 18.93 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.0182/0.3817, allocations: 6.91 MB / 399.2 MB, free: 15.89 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/0.3817, allocations: 12.62 kB / 399.2 MB, free: 15.89 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004833/0.3866, allocations: 1.06 MB / 400.2 MB, free: 15.44 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005498/0.3921, allocations: 3.457 MB / 403.7 MB, free: 13.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002243/0.3923, allocations: 410 kB / 404.1 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000668/0.393, allocations: 0.5283 MB / 404.6 MB, free: 13.47 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0109/0.4039, allocations: 7.044 MB / 411.7 MB, free: 9.379 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001141/0.4041, allocations: 13.78 kB / 411.7 MB, free: 9.371 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004774/0.4045, allocations: 223.6 kB / 411.9 MB, free: 9.203 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002055/0.4048, allocations: 259.9 kB / 412.2 MB, free: 9.164 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009155/0.4139, allocations: 5.937 MB / 418.1 MB, free: 6.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03487/0.4488, allocations: 22.44 MB / 440.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008003/0.4568, allocations: 8.27 MB / 448.8 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003341/0.4602, allocations: 2.188 MB / 451 MB, free: 4.617 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01108/0.4713, allocations: 6.182 MB / 457.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.061e-05/0.4714, allocations: 56.56 kB / 457.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=220): time 6.442e-06/0.4714, allocations: 0 / 457.2 MB, free: 14.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=240): time 0.0232/0.4946, allocations: 11.15 MB / 468.4 MB, free: 2.973 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.471e-05/0.4947, allocations: 73.41 kB / 468.4 MB, free: 2.887 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005066/0.4998, allocations: 3.148 MB / 471.6 MB, free: 15.74 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002882/0.5001, allocations: 65.7 kB / 471.7 MB, free: 15.67 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001756/0.5019, allocations: 2.504 MB / 474.2 MB, free: 13.15 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006963/0.5026, allocations: 0.8289 MB / 475 MB, free: 12.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00088/0.5035, allocations: 0.5673 MB / 475.6 MB, free: 11.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.92e-05/0.5036, allocations: 301.1 kB / 475.9 MB, free: 11.46 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002146/0.5057, allocations: 1.334 MB / 477.2 MB, free: 10.12 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002725/0.5085, allocations: 2.333 MB / 479.5 MB, free: 7.355 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005158/0.5136, allocations: 3.926 MB / 483.4 MB, free: 3.086 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-05/0.5137, allocations: 10.44 kB / 483.5 MB, free: 3.078 MB / 382.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.007745/0.5214, allocations: 4.712 MB / 488.2 MB, free: 14.46 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.641e-05/0.5215, allocations: 16 kB / 488.2 MB, free: 14.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.431e-05/0.5215, allocations: 36 kB / 488.2 MB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001209/0.5227, allocations: 0.5261 MB / 488.7 MB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002646/0.5254, allocations: 0.7417 MB / 489.5 MB, free: 13.17 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008455/0.5339, allocations: 9.436 MB / 498.9 MB, free: 3.133 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002988/0.5369, allocations: 187.9 kB / 499.1 MB, free: 2.949 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003152/0.5372, allocations: 140 kB / 499.2 MB, free: 2.812 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (380): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003242/0.5404, allocations: 1.571 MB / 0.4891 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009777/0.5414, allocations: 351.7 kB / 0.4894 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007515/0.549, allocations: 4.037 MB / 0.4934 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.858e-05/0.549, allocations: 27.98 kB / 0.4934 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.025e-05/0.549, allocations: 11.98 kB / 0.4934 GB, free: 12.79 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.418e-05/0.5491, allocations: 15.89 kB / 0.4934 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01947/0.5685, allocations: 8.972 MB / 0.5022 GB, free: 3.715 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.477e-05/0.5686, allocations: 8 kB / 0.5022 GB, free: 3.707 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001838/0.5704, allocations: 420.2 kB / 0.5026 GB, free: 3.316 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002055/0.5725, allocations: 0.7322 MB / 0.5033 GB, free: 2.566 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002211/0.5727, allocations: 71.91 kB / 0.5034 GB, free: 2.496 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01405/0.5868, allocations: 15.31 MB / 0.5183 GB, free: 2.191 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/0.5868, allocations: 4 kB / 0.5183 GB, free: 2.188 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009481/0.5963, allocations: 5.853 MB / 0.524 GB, free: 12.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001843/0.5982, allocations: 0.6881 MB / 0.5247 GB, free: 11.49 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009746/0.5992, allocations: 59.98 kB / 0.5248 GB, free: 11.43 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00214/0.6013, allocations: 143.8 kB / 0.5249 GB, free: 11.29 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004129/0.6017, allocations: 176.9 kB / 0.5251 GB, free: 11.12 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001798/0.6019, allocations: 79.97 kB / 0.5251 GB, free: 11.04 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004468/0.6064, allocations: 2.123 MB / 0.5272 GB, free: 8.93 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.843e-06/0.6064, allocations: 0 / 0.5272 GB, free: 8.93 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0046/0.611, allocations: 0.9958 MB / 0.5282 GB, free: 7.938 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (201): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,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.0006414/0.6117, allocations: 244.2 kB / 0.5284 GB, free: 7.711 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007564/0.6192, allocations: 4.132 MB / 0.5325 GB, free: 3.586 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.766e-06/0.6193, allocations: 0 / 0.5325 GB, free: 3.586 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004773/0.6241, allocations: 2.759 MB / 0.5352 GB, free: 0.7773 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1806/0.8046, allocations: 0.9066 MB / 0.536 GB, free: 159.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01725/0.8219, allocations: 12.29 MB / 0.548 GB, free: 154 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002799/0.8247, allocations: 3.41 MB / 0.5514 GB, free: 153.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002531/0.8273, allocations: 0.807 MB / 0.5522 GB, free: 153 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006151/0.8279, allocations: 242.9 kB / 0.5524 GB, free: 153 MB / 446.1 MB Notification: Performance of SimCode: time 7.61e-07/0.8279, allocations: 0 / 0.5524 GB, free: 153 MB / 446.1 MB Notification: Performance of Templates: time 0.06703/0.895, allocations: 49.38 MB / 0.6006 GB, free: 112 MB / 446.1 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)