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.001466/0.001466, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001795/0.001795, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.523/1.523, allocations: 205.4 MB / 222.1 MB, free: 5.645 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.0004982/0.0004984, allocations: 16 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.2662, allocations: 47.59 MB / 326.5 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02033/0.2866, allocations: 17.41 MB / 343.9 MB, free: 2.031 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01443/0.3011, allocations: 6.232 MB / 350.1 MB, free: 11.78 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004619/0.3058, allocations: 119.4 kB / 350.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004581/0.3104, allocations: 1.115 MB / 351.3 MB, free: 10.54 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00672/0.3171, allocations: 1.823 MB / 353.2 MB, free: 8.715 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003082/0.3202, allocations: 0.8656 MB / 354 MB, free: 7.848 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.008999/0.3292, allocations: 4.368 MB / 358.4 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007665/0.3369, allocations: 3.694 MB / 362.1 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004545/0.3415, allocations: 2.024 MB / 364.1 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005675/0.3472, allocations: 2.509 MB / 366.6 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002151/0.3493, allocations: 336 kB / 366.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003501/0.3529, allocations: 0.5504 MB / 367.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001772/0.3547, allocations: 1.371 MB / 368.9 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002069/0.3567, allocations: 1.194 MB / 370.1 MB, free: 7.715 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009959/0.3667, allocations: 8.668 MB / 378.7 MB, free: 15.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3667, allocations: 4 kB / 378.7 MB, free: 15.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.3667, allocations: 0 / 378.7 MB, free: 15.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002998/0.3671, allocations: 0 / 378.7 MB, free: 15.02 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.01549/0.3826, allocations: 5.846 MB / 384.6 MB, free: 9.094 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/0.3826, allocations: 15.97 kB / 384.6 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005548/0.3882, allocations: 1.07 MB / 385.7 MB, free: 8 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007992/0.3962, allocations: 3.392 MB / 389.1 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004297/0.3967, allocations: 418.7 kB / 389.5 MB, free: 4.125 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001354/0.398, allocations: 0.5271 MB / 390 MB, free: 3.598 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0145/0.4125, allocations: 6.981 MB / 397 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001178/0.4127, allocations: 11.84 kB / 397 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005111/0.4132, allocations: 220 kB / 397.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002741/0.4135, allocations: 262.6 kB / 397.5 MB, free: 12.06 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01108/0.4246, allocations: 5.917 MB / 403.4 MB, free: 6.133 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04153/0.4662, allocations: 22.42 MB / 425.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01031/0.4765, allocations: 8.279 MB / 434.1 MB, free: 5.969 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01416/0.4907, allocations: 5.157 MB / 439.2 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.42e-05/0.4909, allocations: 56.56 kB / 439.3 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of pre-optimization done (n=234): time 4.869e-06/0.4909, allocations: 0 / 439.3 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of matching and sorting (n=256): time 0.02876/0.5196, allocations: 11.75 MB / 451 MB, free: 4.617 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.166e-05/0.5198, allocations: 81.42 kB / 451.1 MB, free: 4.523 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007406/0.5272, allocations: 3.006 MB / 454.1 MB, free: 1.516 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005887/0.5278, allocations: 69.7 kB / 454.2 MB, free: 1.441 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.236/0.7639, allocations: 2.48 MB / 456.7 MB, free: 105.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001347/0.7653, allocations: 0.8878 MB / 457.6 MB, free: 104.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002558/0.7655, allocations: 67.62 kB / 457.6 MB, free: 104.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002773/0.7658, allocations: 437.2 kB / 458.1 MB, free: 104.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002894/0.7687, allocations: 1.38 MB / 459.4 MB, free: 104.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00282/0.7716, allocations: 2.362 MB / 461.8 MB, free: 102.8 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00306/0.7746, allocations: 1.785 MB / 463.6 MB, free: 102.1 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.852e-05/0.7747, allocations: 9.125 kB / 463.6 MB, free: 102.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.007493/0.7822, allocations: 4.798 MB / 468.4 MB, free: 99.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.554e-05/0.7822, allocations: 23.66 kB / 468.4 MB, free: 99.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.002e-05/0.7823, allocations: 30.84 kB / 468.4 MB, free: 99.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001295/0.7836, allocations: 0.5293 MB / 469 MB, free: 99.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00266/0.7863, allocations: 0.7814 MB / 469.8 MB, free: 99.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006903/0.7932, allocations: 9.53 MB / 479.3 MB, free: 91.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002974/0.7962, allocations: 192.6 kB / 479.5 MB, free: 91.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000261/0.7965, allocations: 142.4 kB / 479.6 MB, free: 91.67 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 140 * 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 (391): * Single equations (assignments): 384 * 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: 5 * 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: 5 {(1,100.0%) 1,(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003228/0.7997, allocations: 1.579 MB / 481.2 MB, free: 90.81 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009233/0.8007, allocations: 343.9 kB / 481.5 MB, free: 90.64 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006425/0.8071, allocations: 4.218 MB / 485.7 MB, free: 87.7 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.857e-05/0.8071, allocations: 24 kB / 485.8 MB, free: 87.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.284e-05/0.8072, allocations: 8.125 kB / 485.8 MB, free: 87.67 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.217e-05/0.8072, allocations: 19.91 kB / 485.8 MB, free: 87.65 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0135/0.8207, allocations: 9.268 MB / 495.1 MB, free: 78.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.068e-05/0.8208, allocations: 8 kB / 495.1 MB, free: 78.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001699/0.8225, allocations: 451.3 kB / 495.5 MB, free: 77.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0016/0.8241, allocations: 0.7248 MB / 496.2 MB, free: 77.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001591/0.8242, allocations: 71.97 kB / 496.3 MB, free: 76.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01094/0.8352, allocations: 15.49 MB / 0.4998 GB, free: 60.41 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.583e-06/0.8352, allocations: 8 kB / 0.4998 GB, free: 60.4 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008182/0.8434, allocations: 6.657 MB / 0.5063 GB, free: 53.33 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002101/0.8456, allocations: 0.7036 MB / 0.507 GB, free: 52.6 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004473/0.846, allocations: 64.06 kB / 0.5071 GB, free: 52.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001573/0.8476, allocations: 159.8 kB / 0.5072 GB, free: 52.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000405/0.848, allocations: 197.5 kB / 0.5074 GB, free: 52.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001385/0.8482, allocations: 79.97 kB / 0.5075 GB, free: 52.11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002807/0.851, allocations: 2.02 MB / 0.5094 GB, free: 50.1 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.851, allocations: 0 / 0.5094 GB, free: 50.1 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003332/0.8543, allocations: 1.002 MB / 0.5104 GB, free: 49.11 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (217): * Single equations (assignments): 209 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004685/0.8548, allocations: 220.7 kB / 0.5106 GB, free: 48.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005697/0.8605, allocations: 4.242 MB / 0.5148 GB, free: 44.53 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/0.8605, allocations: 0 / 0.5148 GB, free: 44.53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003613/0.8642, allocations: 2.837 MB / 0.5176 GB, free: 41.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004095/0.8683, allocations: 0.8783 MB / 0.5184 GB, free: 40.72 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0166/0.8849, allocations: 12.11 MB / 0.5302 GB, free: 28.51 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002563/0.8875, allocations: 3.516 MB / 0.5337 GB, free: 24.96 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002969/0.8905, allocations: 0.8269 MB / 0.5345 GB, free: 24.13 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005673/0.891, allocations: 247.4 kB / 0.5347 GB, free: 23.89 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.8911, allocations: 0 / 0.5347 GB, free: 23.89 MB / 382.1 MB Notification: Performance of Templates: time 0.07911/0.9702, allocations: 46.87 MB / 0.5805 GB, free: 8.953 MB / 414.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: