Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.007845/0.007845, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001854/0.001854, allocations: 198.4 kB / 16.68 MB, free: 5.93 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.349/1.349, allocations: 205.1 MB / 222.6 MB, free: 4.52 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.001184/0.001184, allocations: 58.72 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07918/0.08037, allocations: 46.62 MB / 373.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.0237/0.1041, allocations: 21.67 MB / 394.9 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01411/0.1183, allocations: 6.434 MB / 401.3 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003819/0.1222, allocations: 123.4 kB / 401.4 MB, free: 4.941 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004731/0.1269, allocations: 1.545 MB / 403 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006961/0.1339, allocations: 2.132 MB / 405.1 MB, free: 1.242 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00396/0.1379, allocations: 1.303 MB / 406.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009032/0.1469, allocations: 6.542 MB / 412.9 MB, free: 9.371 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008682/0.1557, allocations: 5.503 MB / 418.4 MB, free: 3.777 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0053/0.161, allocations: 3.006 MB / 421.4 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006464/0.1675, allocations: 3.565 MB / 425 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002074/0.1696, allocations: 0.8203 MB / 425.8 MB, free: 12.36 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003724/0.1733, allocations: 1.101 MB / 426.9 MB, free: 11.26 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002986/0.1763, allocations: 2.026 MB / 429 MB, free: 9.23 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005862/0.1822, allocations: 3.532 MB / 432.5 MB, free: 5.684 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01043/0.1927, allocations: 10.78 MB / 443.3 MB, free: 10.87 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.1927, allocations: 0 / 443.3 MB, free: 10.87 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1927, allocations: 0 / 443.3 MB, free: 10.87 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001676/0.1929, allocations: 0 / 443.3 MB, free: 10.87 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.01486/0.2077, allocations: 6.922 MB / 450.2 MB, free: 3.863 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.2078, allocations: 8.031 kB / 450.2 MB, free: 3.855 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004564/0.2123, allocations: 1.063 MB / 451.3 MB, free: 2.785 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2095/0.4219, allocations: 3.508 MB / 454.8 MB, free: 63.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004346/0.4223, allocations: 406.2 kB / 455.2 MB, free: 63.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00151/0.4239, allocations: 0.5247 MB / 455.7 MB, free: 63.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01483/0.4387, allocations: 7.053 MB / 462.8 MB, free: 61 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001485/0.4389, allocations: 13.45 kB / 462.8 MB, free: 61 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004914/0.4394, allocations: 220.5 kB / 463 MB, free: 60.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002801/0.4397, allocations: 267.8 kB / 463.2 MB, free: 60.81 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01035/0.45, allocations: 5.931 MB / 469.2 MB, free: 58.6 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02807/0.4781, allocations: 22.16 MB / 491.3 MB, free: 41.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006202/0.4844, allocations: 8.28 MB / 499.6 MB, free: 32.37 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00253/0.487, allocations: 2.167 MB / 0.49 GB, free: 30.22 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008047/0.495, allocations: 6.163 MB / 0.496 GB, free: 24 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.887e-05/0.4951, allocations: 60.5 kB / 0.4961 GB, free: 23.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=220): time 3.366e-06/0.4951, allocations: 0 / 0.4961 GB, free: 23.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=240): time 0.01805/0.5131, allocations: 11.14 MB / 0.507 GB, free: 12.55 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.247e-05/0.5132, allocations: 81.41 kB / 0.5071 GB, free: 12.46 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003538/0.5167, allocations: 3.152 MB / 0.5101 GB, free: 9.309 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001593/0.5169, allocations: 69.7 kB / 0.5102 GB, free: 9.234 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001064/0.518, allocations: 2.498 MB / 0.5126 GB, free: 6.723 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004337/0.5184, allocations: 0.8311 MB / 0.5134 GB, free: 5.895 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007057/0.5191, allocations: 0.5536 MB / 0.514 GB, free: 5.332 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.643e-05/0.5192, allocations: 305.1 kB / 0.5143 GB, free: 5.031 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001717/0.5209, allocations: 1.338 MB / 0.5156 GB, free: 3.691 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002027/0.523, allocations: 2.345 MB / 0.5179 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004854/0.5278, allocations: 3.92 MB / 0.5217 GB, free: 12.5 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.401e-05/0.5278, allocations: 11.94 kB / 0.5217 GB, free: 12.49 MB / 398.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.007418/0.5353, allocations: 4.701 MB / 0.5263 GB, free: 7.68 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.898e-05/0.5353, allocations: 16 kB / 0.5263 GB, free: 7.664 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.405e-05/0.5354, allocations: 32 kB / 0.5264 GB, free: 7.633 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001219/0.5366, allocations: 0.5334 MB / 0.5269 GB, free: 7.078 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002641/0.5393, allocations: 0.7449 MB / 0.5276 GB, free: 6.332 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008603/0.5479, allocations: 10.29 MB / 0.5376 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002542/0.5504, allocations: 183.7 kB / 0.5378 GB, free: 11.17 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002169/0.5507, allocations: 144 kB / 0.538 GB, free: 11.03 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.002534/0.5532, allocations: 1.572 MB / 0.5395 GB, free: 9.449 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004994/0.5537, allocations: 343.8 kB / 0.5398 GB, free: 9.109 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006501/0.5602, allocations: 4.053 MB / 0.5438 GB, free: 4.945 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.871e-05/0.5603, allocations: 24 kB / 0.5438 GB, free: 4.922 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.316e-05/0.5603, allocations: 8 kB / 0.5438 GB, free: 4.914 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.116e-05/0.5603, allocations: 11.95 kB / 0.5438 GB, free: 4.902 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0135/0.5738, allocations: 8.969 MB / 0.5526 GB, free: 11.79 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.306e-05/0.5739, allocations: 8.094 kB / 0.5526 GB, free: 11.79 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001754/0.5756, allocations: 403.4 kB / 0.553 GB, free: 11.39 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001836/0.5775, allocations: 0.7425 MB / 0.5537 GB, free: 10.62 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001777/0.5777, allocations: 67.91 kB / 0.5538 GB, free: 10.56 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01443/0.5921, allocations: 16.73 MB / 0.5701 GB, free: 8.727 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.5921, allocations: 7.938 kB / 0.5701 GB, free: 8.719 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009044/0.6012, allocations: 5.84 MB / 0.5758 GB, free: 2.711 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001505/0.6027, allocations: 0.6959 MB / 0.5765 GB, free: 1.992 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003903/0.6031, allocations: 59.92 kB / 0.5765 GB, free: 1.934 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001581/0.6047, allocations: 139.9 kB / 0.5767 GB, free: 1.797 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004062/0.6051, allocations: 189.4 kB / 0.5769 GB, free: 1.613 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000155/0.6053, allocations: 67.98 kB / 0.5769 GB, free: 1.547 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003173/0.6085, allocations: 2.127 MB / 0.579 GB, free: 15.43 MB / 462.1 MB Notification: Performance of sort global known variables: time 2e-07/0.6085, allocations: 7.938 kB / 0.579 GB, free: 15.42 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003239/0.6117, allocations: 0.9872 MB / 0.58 GB, free: 14.44 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.0004917/0.6122, allocations: 248.4 kB / 0.5802 GB, free: 14.18 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006047/0.6183, allocations: 4.155 MB / 0.5843 GB, free: 9.938 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.6183, allocations: 4 kB / 0.5843 GB, free: 9.934 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00396/0.6223, allocations: 2.736 MB / 0.5869 GB, free: 7.102 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003641/0.6259, allocations: 0.9496 MB / 0.5879 GB, free: 6.152 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01536/0.6413, allocations: 9.932 MB / 0.5976 GB, free: 12.14 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003067/0.6444, allocations: 3.407 MB / 0.6009 GB, free: 8.703 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002534/0.6469, allocations: 0.8073 MB / 0.6017 GB, free: 7.895 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006554/0.6476, allocations: 243.4 kB / 0.6019 GB, free: 7.656 MB / 478.1 MB Notification: Performance of SimCode: time 8.92e-07/0.6476, allocations: 0 / 0.6019 GB, free: 7.656 MB / 478.1 MB Notification: Performance of Templates: time 0.2825/0.9301, allocations: 49.13 MB / 0.6499 GB, free: 149.2 MB / 494.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1)