Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001097/0.001097, allocations: 104.3 kB / 16.92 MB, free: 6.145 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.001116/0.001116, allocations: 191.5 kB / 17.85 MB, free: 5.309 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.344/1.344, allocations: 205.1 MB / 223.7 MB, free: 12.3 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.001277/0.001277, allocations: 56.61 kB / 280 MB, free: 3.172 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08321/0.0845, allocations: 46.62 MB / 326.6 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02149/0.106, allocations: 20.23 MB / 346.9 MB, free: 152 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01115/0.1172, allocations: 5.944 MB / 352.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003098/0.1204, allocations: 127.4 kB / 352.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00405/0.1245, allocations: 1.335 MB / 354.3 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006148/0.1306, allocations: 1.91 MB / 356.2 MB, free: 6.789 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003502/0.1342, allocations: 1.251 MB / 357.4 MB, free: 5.535 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007775/0.1419, allocations: 6.085 MB / 363.5 MB, free: 15.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007661/0.1496, allocations: 5.37 MB / 368.9 MB, free: 9.969 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004544/0.1542, allocations: 2.811 MB / 371.7 MB, free: 7.148 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005555/0.1598, allocations: 3.382 MB / 375.1 MB, free: 3.754 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002472/0.1623, allocations: 0.7812 MB / 375.8 MB, free: 2.973 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005694/0.168, allocations: 1.07 MB / 376.9 MB, free: 1.902 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1704/0.3384, allocations: 1.934 MB / 378.8 MB, free: 21.78 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005187/0.3437, allocations: 3.353 MB / 382.2 MB, free: 21.55 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01072/0.3544, allocations: 10.2 MB / 392.4 MB, free: 20.5 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3544, allocations: 0 / 392.4 MB, free: 20.5 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3544, allocations: 0 / 392.4 MB, free: 20.5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002495/0.3547, allocations: 0 / 392.4 MB, free: 20.5 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01705/0.3718, allocations: 6.587 MB / 399 MB, free: 17.69 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.3718, allocations: 18.28 kB / 399 MB, free: 17.69 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004632/0.3764, allocations: 1.01 MB / 400 MB, free: 17.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005839/0.3823, allocations: 3.303 MB / 403.3 MB, free: 15.37 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002451/0.3826, allocations: 395.9 kB / 403.7 MB, free: 15.2 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000751/0.3833, allocations: 0.4995 MB / 404.2 MB, free: 15.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01072/0.3941, allocations: 6.777 MB / 411 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000103/0.3942, allocations: 3.812 kB / 411 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004604/0.3947, allocations: 208.3 kB / 411.2 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001848/0.3949, allocations: 249.9 kB / 411.4 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01089/0.4058, allocations: 5.744 MB / 417.2 MB, free: 7.898 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03909/0.4449, allocations: 21.1 MB / 438.3 MB, free: 3.145 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008404/0.4533, allocations: 8.533 MB / 446.8 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003517/0.4569, allocations: 2.113 MB / 448.9 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01086/0.4678, allocations: 5.941 MB / 454.9 MB, free: 1.559 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.488e-05/0.4679, allocations: 60.55 kB / 454.9 MB, free: 1.492 MB / 350.1 MB Notification: Performance of pre-optimization done (n=205): time 4.799e-06/0.4679, allocations: 0 / 454.9 MB, free: 1.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=222): time 0.02034/0.4882, allocations: 10.27 MB / 465.2 MB, free: 7.031 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.483e-05/0.4883, allocations: 73.41 kB / 465.3 MB, free: 6.945 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003994/0.4923, allocations: 2.908 MB / 468.2 MB, free: 4.031 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001585/0.4925, allocations: 65.7 kB / 468.2 MB, free: 3.961 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001516/0.494, allocations: 2.352 MB / 470.6 MB, free: 1.594 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005697/0.4946, allocations: 0.7731 MB / 471.4 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007794/0.4954, allocations: 0.5177 MB / 471.9 MB, free: 308 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.709e-05/0.4955, allocations: 301.1 kB / 472.2 MB, free: 4 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001953/0.4974, allocations: 1.267 MB / 473.4 MB, free: 14.73 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002541/0.5, allocations: 2.177 MB / 475.6 MB, free: 12.17 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004693/0.5047, allocations: 3.668 MB / 479.3 MB, free: 8.223 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-05/0.5047, allocations: 12 kB / 479.3 MB, free: 8.211 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.007174/0.5119, allocations: 4.437 MB / 483.7 MB, free: 3.887 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.319e-05/0.5119, allocations: 19.28 kB / 483.8 MB, free: 3.871 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.287e-05/0.512, allocations: 31.98 kB / 483.8 MB, free: 3.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001328/0.5133, allocations: 0.5206 MB / 484.3 MB, free: 3.305 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002491/0.5158, allocations: 0.688 MB / 485 MB, free: 2.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008881/0.5247, allocations: 10.2 MB / 495.2 MB, free: 7.824 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003247/0.528, allocations: 175.7 kB / 495.4 MB, free: 7.652 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004358/0.5285, allocations: 132 kB / 495.5 MB, free: 7.523 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (348): * Single equations (assignments): 341 * 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,11,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.003306/0.5318, allocations: 1.518 MB / 497 MB, free: 6.039 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008705/0.5327, allocations: 312.2 kB / 497.3 MB, free: 5.73 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007003/0.5397, allocations: 3.873 MB / 0.4894 GB, free: 1.793 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.826e-05/0.5397, allocations: 20 kB / 0.4895 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.614e-05/0.5397, allocations: 8 kB / 0.4895 GB, free: 1.766 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.441e-05/0.5398, allocations: 15.89 kB / 0.4895 GB, free: 1.75 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0152/0.555, allocations: 8.489 MB / 0.4978 GB, free: 9.176 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/0.555, allocations: 4 kB / 0.4978 GB, free: 9.172 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001716/0.5567, allocations: 378 kB / 0.4981 GB, free: 8.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001841/0.5586, allocations: 0.7342 MB / 0.4989 GB, free: 8.066 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001596/0.5588, allocations: 59.97 kB / 0.4989 GB, free: 8.008 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01529/0.5741, allocations: 16.63 MB / 0.5151 GB, free: 6.344 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.5741, allocations: 7.375 kB / 0.5152 GB, free: 6.34 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009513/0.5836, allocations: 5.543 MB / 0.5206 GB, free: 0.6797 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002005/0.5857, allocations: 0.661 MB / 0.5212 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007921/0.5865, allocations: 51.94 kB / 0.5213 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001738/0.5882, allocations: 131.9 kB / 0.5214 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004411/0.5887, allocations: 173.4 kB / 0.5216 GB, free: 15.65 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001439/0.5888, allocations: 63.98 kB / 0.5216 GB, free: 15.59 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003551/0.5924, allocations: 1.967 MB / 0.5235 GB, free: 13.62 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5924, allocations: 0 / 0.5235 GB, free: 13.62 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004321/0.5967, allocations: 0.9337 MB / 0.5244 GB, free: 12.69 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],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 (185): * Single equations (assignments): 177 * 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,11,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006416/0.5974, allocations: 250 kB / 0.5247 GB, free: 12.46 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0108/0.6082, allocations: 5.407 MB / 0.53 GB, free: 7.066 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/0.6083, allocations: 0 / 0.53 GB, free: 7.066 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004244/0.6125, allocations: 2.644 MB / 0.5325 GB, free: 4.367 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004383/0.6169, allocations: 0.8486 MB / 0.5334 GB, free: 3.52 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.165/0.7819, allocations: 9.59 MB / 0.5427 GB, free: 158.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00363/0.7856, allocations: 3.3 MB / 0.546 GB, free: 157.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002813/0.7884, allocations: 0.7621 MB / 0.5467 GB, free: 157.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006948/0.7892, allocations: 222.6 kB / 0.5469 GB, free: 157.5 MB / 446.1 MB Notification: Performance of SimCode: time 9.92e-07/0.7892, allocations: 0 / 0.5469 GB, free: 157.5 MB / 446.1 MB Notification: Performance of Templates: time 0.07306/0.8622, allocations: 47.33 MB / 0.5931 GB, free: 120.3 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)