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.000945/0.0009452, allocations: 99.47 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.001072/0.001072, 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.424/1.424, allocations: 205.4 MB / 222.1 MB, free: 5.637 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.000449/0.0004491, allocations: 12 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2487, allocations: 47.58 MB / 326.5 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.01959/0.2684, allocations: 17.41 MB / 343.9 MB, free: 2.07 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01477/0.2832, allocations: 6.248 MB / 350.1 MB, free: 11.8 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005111/0.2883, allocations: 119.4 kB / 350.2 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004998/0.2934, allocations: 1.111 MB / 351.3 MB, free: 10.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009611/0.303, allocations: 1.819 MB / 353.2 MB, free: 8.746 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004057/0.3071, allocations: 0.8772 MB / 354 MB, free: 7.867 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01033/0.3174, allocations: 4.364 MB / 358.4 MB, free: 3.492 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007591/0.3251, allocations: 3.698 MB / 362.1 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004466/0.3296, allocations: 2.012 MB / 364.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005051/0.3347, allocations: 2.521 MB / 366.6 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001137/0.3358, allocations: 332 kB / 367 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002304/0.3381, allocations: 0.5504 MB / 367.5 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001381/0.3395, allocations: 1.371 MB / 368.9 MB, free: 8.941 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001782/0.3413, allocations: 1.194 MB / 370.1 MB, free: 7.738 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009211/0.3505, allocations: 8.672 MB / 378.7 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3506, allocations: 0 / 378.7 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.3506, allocations: 0 / 378.7 MB, free: 15.04 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003565/0.351, allocations: 0 / 378.7 MB, free: 15.04 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.01633/0.3673, allocations: 5.846 MB / 384.6 MB, free: 9.117 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.514e-05/0.3674, allocations: 12.03 kB / 384.6 MB, free: 9.105 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006157/0.3735, allocations: 1.07 MB / 385.7 MB, free: 8.027 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01076/0.3843, allocations: 3.384 MB / 389 MB, free: 4.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005567/0.385, allocations: 430.7 kB / 389.5 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001486/0.3865, allocations: 0.5193 MB / 390 MB, free: 3.629 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01434/0.4008, allocations: 6.981 MB / 397 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001132/0.401, allocations: 15.84 kB / 397 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004756/0.4014, allocations: 220 kB / 397.2 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002476/0.4017, allocations: 258.6 kB / 397.5 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01089/0.4126, allocations: 5.925 MB / 403.4 MB, free: 6.156 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04495/0.4576, allocations: 22.43 MB / 425.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008463/0.4661, allocations: 8.275 MB / 434.1 MB, free: 5.992 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0112/0.4774, allocations: 5.149 MB / 439.2 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.199e-05/0.4775, allocations: 60.56 kB / 439.3 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of pre-optimization done (n=234): time 4.628e-06/0.4775, allocations: 0 / 439.3 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of matching and sorting (n=256): time 0.02569/0.5032, allocations: 11.76 MB / 451 MB, free: 4.641 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.866e-05/0.5033, allocations: 81.41 kB / 451.1 MB, free: 4.547 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004798/0.5081, allocations: 3.006 MB / 454.1 MB, free: 1.539 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003377/0.5085, allocations: 73.7 kB / 454.2 MB, free: 1.461 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.214/0.7224, allocations: 2.472 MB / 456.7 MB, free: 105.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001193/0.7237, allocations: 0.8831 MB / 457.6 MB, free: 104.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000223/0.7239, allocations: 66.41 kB / 457.6 MB, free: 104.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002239/0.7241, allocations: 435.3 kB / 458.1 MB, free: 104.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002696/0.7268, allocations: 1.383 MB / 459.4 MB, free: 104.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002616/0.7295, allocations: 2.361 MB / 461.8 MB, free: 102.8 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002802/0.7323, allocations: 1.789 MB / 463.6 MB, free: 102.1 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.219e-05/0.7323, allocations: 8.406 kB / 463.6 MB, free: 102.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.007049/0.7394, allocations: 4.802 MB / 468.4 MB, free: 99.97 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.053e-05/0.7394, allocations: 15.72 kB / 468.4 MB, free: 99.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.281e-05/0.7395, allocations: 34.66 kB / 468.4 MB, free: 99.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001224/0.7408, allocations: 0.5293 MB / 469 MB, free: 99.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002825/0.7436, allocations: 0.7789 MB / 469.8 MB, free: 99.71 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006834/0.7504, allocations: 9.533 MB / 479.3 MB, free: 91.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003176/0.7537, allocations: 194.9 kB / 479.5 MB, free: 91.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004903/0.7542, allocations: 144 kB / 479.6 MB, free: 91.66 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.003287/0.7575, allocations: 1.576 MB / 481.2 MB, free: 90.81 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007612/0.7583, allocations: 346.9 kB / 481.5 MB, free: 90.63 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006305/0.7646, allocations: 4.21 MB / 485.7 MB, free: 87.75 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.976e-05/0.7646, allocations: 28 kB / 485.8 MB, free: 87.72 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.429e-05/0.7646, allocations: 8 kB / 485.8 MB, free: 87.71 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.161e-05/0.7647, allocations: 11.95 kB / 485.8 MB, free: 87.7 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01354/0.7782, allocations: 9.284 MB / 495.1 MB, free: 78.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-05/0.7783, allocations: 8 kB / 495.1 MB, free: 78.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001755/0.78, allocations: 451.3 kB / 495.5 MB, free: 77.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001606/0.7817, allocations: 0.7171 MB / 496.2 MB, free: 77.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001686/0.7819, allocations: 75.97 kB / 496.3 MB, free: 77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01073/0.7926, allocations: 15.49 MB / 0.4998 GB, free: 60.45 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.701e-06/0.7926, allocations: 8 kB / 0.4998 GB, free: 60.45 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008046/0.8007, allocations: 6.655 MB / 0.5063 GB, free: 53.38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002237/0.803, allocations: 0.7036 MB / 0.507 GB, free: 52.65 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000547/0.8035, allocations: 60 kB / 0.5071 GB, free: 52.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001573/0.8051, allocations: 151.9 kB / 0.5072 GB, free: 52.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003859/0.8055, allocations: 209.5 kB / 0.5074 GB, free: 52.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000131/0.8056, allocations: 75.97 kB / 0.5075 GB, free: 52.17 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002743/0.8084, allocations: 2.016 MB / 0.5094 GB, free: 50.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.8084, allocations: 0 / 0.5094 GB, free: 50.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003478/0.8119, allocations: 1.009 MB / 0.5104 GB, free: 49.16 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.0004952/0.8124, allocations: 226.4 kB / 0.5106 GB, free: 48.94 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005448/0.8179, allocations: 4.238 MB / 0.5148 GB, free: 44.58 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.8179, allocations: 7.938 kB / 0.5148 GB, free: 44.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003486/0.8214, allocations: 2.834 MB / 0.5176 GB, free: 41.65 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00369/0.8251, allocations: 0.8831 MB / 0.5184 GB, free: 40.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01473/0.8398, allocations: 12.1 MB / 0.5302 GB, free: 28.56 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002509/0.8424, allocations: 3.516 MB / 0.5337 GB, free: 25.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002704/0.8451, allocations: 0.823 MB / 0.5345 GB, free: 24.19 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006163/0.8457, allocations: 247.4 kB / 0.5347 GB, free: 23.95 MB / 382.1 MB Notification: Performance of SimCode: time 1.143e-06/0.8457, allocations: 0 / 0.5347 GB, free: 23.95 MB / 382.1 MB Notification: Performance of Templates: time 0.07873/0.9245, allocations: 46.88 MB / 0.5805 GB, free: 9.004 MB / 414.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: