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/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.1_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.1_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.005852/0.005852, allocations: 100.3 kB / 15.73 MB, free: 6.469 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.00108/0.00108, allocations: 193.5 kB / 16.67 MB, free: 6.379 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.436/1.436, allocations: 205.1 MB / 222.5 MB, free: 4.535 MB / 174.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.001176/0.001176, allocations: 46.34 kB / 326.6 MB, free: 14.23 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08892/0.09011, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.0208/0.1109, allocations: 21.68 MB / 394.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01133/0.1223, allocations: 6.434 MB / 401.3 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003186/0.1256, allocations: 127.4 kB / 401.4 MB, free: 4.957 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004432/0.13, allocations: 1.475 MB / 402.9 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006089/0.1361, allocations: 2.05 MB / 404.9 MB, free: 1.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003024/0.1392, allocations: 1.298 MB / 406.2 MB, free: 112 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007477/0.1467, allocations: 6.534 MB / 412.8 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006695/0.1534, allocations: 5.511 MB / 418.3 MB, free: 3.949 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003899/0.1573, allocations: 3.002 MB / 421.3 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00501/0.1623, allocations: 3.565 MB / 424.9 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00233/0.1647, allocations: 0.8164 MB / 425.7 MB, free: 12.54 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004046/0.1687, allocations: 1.101 MB / 426.8 MB, free: 11.44 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002622/0.1714, allocations: 2.03 MB / 428.8 MB, free: 9.406 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006364/0.1778, allocations: 3.532 MB / 432.3 MB, free: 5.859 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0164/0.1942, allocations: 10.78 MB / 443.1 MB, free: 11.05 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.408e-06/0.1942, allocations: 4 kB / 443.1 MB, free: 11.04 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1943, allocations: 0 / 443.1 MB, free: 11.04 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003094/0.1946, allocations: 4 kB / 443.1 MB, free: 11.04 MB / 382.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.02511/0.2197, allocations: 6.918 MB / 450 MB, free: 4.039 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.2198, allocations: 8.031 kB / 450.1 MB, free: 4.031 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008617/0.2284, allocations: 1.059 MB / 451.1 MB, free: 2.965 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.18/0.4085, allocations: 3.514 MB / 454.6 MB, free: 63.51 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005351/0.409, allocations: 406.5 kB / 455 MB, free: 63.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001729/0.4108, allocations: 0.5257 MB / 455.5 MB, free: 63.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01388/0.4247, allocations: 7.048 MB / 462.6 MB, free: 61.01 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001212/0.4248, allocations: 16.98 kB / 462.6 MB, free: 61 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004556/0.4253, allocations: 216.3 kB / 462.8 MB, free: 60.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000278/0.4256, allocations: 260.5 kB / 463.1 MB, free: 60.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01001/0.4356, allocations: 5.939 MB / 469 MB, free: 58.6 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0272/0.4628, allocations: 22.16 MB / 491.2 MB, free: 41.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00585/0.4687, allocations: 8.288 MB / 499.5 MB, free: 32.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002529/0.4712, allocations: 2.16 MB / 0.4899 GB, free: 30.37 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008674/0.4799, allocations: 6.16 MB / 0.4959 GB, free: 24.16 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.944e-05/0.48, allocations: 64.44 kB / 0.4959 GB, free: 24.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=220): time 4.108e-06/0.48, allocations: 0 / 0.4959 GB, free: 24.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=240): time 0.01892/0.4989, allocations: 11.14 MB / 0.5068 GB, free: 12.71 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.598e-05/0.499, allocations: 81.41 kB / 0.5069 GB, free: 12.62 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003697/0.5027, allocations: 3.144 MB / 0.51 GB, free: 9.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001383/0.5029, allocations: 65.7 kB / 0.51 GB, free: 9.41 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001081/0.504, allocations: 2.505 MB / 0.5125 GB, free: 6.887 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004067/0.5044, allocations: 0.8263 MB / 0.5133 GB, free: 6.066 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007123/0.5051, allocations: 0.5614 MB / 0.5138 GB, free: 5.496 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.195e-05/0.5051, allocations: 305.1 kB / 0.5141 GB, free: 5.195 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00175/0.5069, allocations: 1.338 MB / 0.5154 GB, free: 3.855 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002596/0.5095, allocations: 2.343 MB / 0.5177 GB, free: 1.07 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004968/0.5145, allocations: 3.916 MB / 0.5215 GB, free: 12.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.435e-05/0.5145, allocations: 12 kB / 0.5216 GB, free: 12.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.008244/0.5228, allocations: 4.709 MB / 0.5262 GB, free: 7.844 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.25e-05/0.5228, allocations: 20 kB / 0.5262 GB, free: 7.824 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.249e-05/0.5229, allocations: 32 kB / 0.5262 GB, free: 7.793 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001196/0.5241, allocations: 0.5217 MB / 0.5267 GB, free: 7.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002677/0.5268, allocations: 0.7488 MB / 0.5274 GB, free: 6.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008793/0.5356, allocations: 10.28 MB / 0.5375 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002524/0.5381, allocations: 183.7 kB / 0.5377 GB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002095/0.5384, allocations: 136 kB / 0.5378 GB, free: 11.21 MB / 414.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.002645/0.541, allocations: 1.578 MB / 0.5393 GB, free: 9.617 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005478/0.5416, allocations: 343.8 kB / 0.5397 GB, free: 9.277 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0068/0.5484, allocations: 4.053 MB / 0.5436 GB, free: 5.121 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.796e-05/0.5484, allocations: 24 kB / 0.5436 GB, free: 5.098 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.295e-05/0.5484, allocations: 8 kB / 0.5437 GB, free: 5.09 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.271e-05/0.5485, allocations: 11.95 kB / 0.5437 GB, free: 5.078 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01441/0.5629, allocations: 8.971 MB / 0.5524 GB, free: 11.97 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.161e-05/0.5629, allocations: 16.06 kB / 0.5524 GB, free: 11.95 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001799/0.5647, allocations: 407.4 kB / 0.5528 GB, free: 11.55 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001927/0.5667, allocations: 0.7346 MB / 0.5535 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001746/0.5669, allocations: 71.91 kB / 0.5536 GB, free: 10.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01505/0.5819, allocations: 16.72 MB / 0.5699 GB, free: 8.898 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.974e-06/0.582, allocations: 8 kB / 0.57 GB, free: 8.891 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009297/0.5913, allocations: 5.845 MB / 0.5757 GB, free: 2.879 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001814/0.5931, allocations: 0.692 MB / 0.5763 GB, free: 2.164 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005371/0.5936, allocations: 59.98 kB / 0.5764 GB, free: 2.105 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001746/0.5954, allocations: 131.9 kB / 0.5765 GB, free: 1.977 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004097/0.5958, allocations: 181.6 kB / 0.5767 GB, free: 1.797 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001541/0.596, allocations: 71.98 kB / 0.5768 GB, free: 1.727 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003138/0.5991, allocations: 2.127 MB / 0.5788 GB, free: 15.61 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5992, allocations: 7.938 kB / 0.5788 GB, free: 15.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003265/0.6024, allocations: 0.9911 MB / 0.5798 GB, free: 14.61 MB / 462.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.0005315/0.603, allocations: 252.2 kB / 0.5801 GB, free: 14.36 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00633/0.6093, allocations: 4.151 MB / 0.5841 GB, free: 10.11 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.6093, allocations: 4.062 kB / 0.5841 GB, free: 10.11 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004153/0.6135, allocations: 2.743 MB / 0.5868 GB, free: 7.273 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004872/0.6184, allocations: 0.9536 MB / 0.5877 GB, free: 6.316 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02103/0.6394, allocations: 9.933 MB / 0.5974 GB, free: 12.31 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004505/0.644, allocations: 3.404 MB / 0.6007 GB, free: 8.871 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003065/0.6471, allocations: 0.8151 MB / 0.6015 GB, free: 8.055 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009382/0.648, allocations: 243.4 kB / 0.6018 GB, free: 7.816 MB / 478.1 MB Notification: Performance of SimCode: time 5.81e-07/0.6481, allocations: 0 / 0.6018 GB, free: 7.816 MB / 478.1 MB Notification: Performance of Templates: time 0.2773/0.9254, allocations: 49.87 MB / 0.6505 GB, free: 148.7 MB / 494.1 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)