Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.0009864/0.0009864, 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.0009927/0.0009928, 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.456/1.456, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.0005027/0.0005028, allocations: 12 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2461/0.2466, allocations: 47.58 MB / 326.5 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.01765/0.2643, allocations: 16.23 MB / 342.7 MB, free: 3.246 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01212/0.2765, allocations: 5.773 MB / 348.5 MB, free: 13.46 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003367/0.2799, allocations: 107.5 kB / 348.6 MB, free: 13.35 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003312/0.2832, allocations: 1.01 MB / 349.6 MB, free: 12.34 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005835/0.2891, allocations: 1.686 MB / 351.3 MB, free: 10.64 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002592/0.2917, allocations: 0.8344 MB / 352.1 MB, free: 9.809 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00733/0.2991, allocations: 4.076 MB / 356.2 MB, free: 5.723 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004807/0.3039, allocations: 3.573 MB / 359.7 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003533/0.3075, allocations: 1.907 MB / 361.7 MB, free: 184 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004207/0.3117, allocations: 2.389 MB / 364 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001351/0.3131, allocations: 323.9 kB / 364.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002972/0.3161, allocations: 0.5348 MB / 364.9 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00164/0.3177, allocations: 1.308 MB / 366.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001822/0.3196, allocations: 1.132 MB / 367.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01151/0.3311, allocations: 8.305 MB / 375.6 MB, free: 2.148 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.3311, allocations: 0 / 375.6 MB, free: 2.148 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.3311, allocations: 0 / 375.6 MB, free: 2.148 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003314/0.3315, allocations: 0 / 375.6 MB, free: 2.148 MB / 302.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.01662/0.3481, allocations: 5.576 MB / 381.2 MB, free: 12.49 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.3482, allocations: 8.031 kB / 381.2 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005245/0.3534, allocations: 1.004 MB / 382.2 MB, free: 11.47 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00702/0.3605, allocations: 3.213 MB / 385.4 MB, free: 8.184 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003392/0.3608, allocations: 398.2 kB / 385.8 MB, free: 7.793 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009086/0.3618, allocations: 0.5076 MB / 386.3 MB, free: 7.285 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01338/0.3752, allocations: 6.704 MB / 393 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001063/0.3753, allocations: 15.83 kB / 393.1 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000504/0.3758, allocations: 212 kB / 393.3 MB, free: 296 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002549/0.3761, allocations: 242.2 kB / 393.5 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01143/0.3875, allocations: 5.732 MB / 399.2 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04162/0.4292, allocations: 21.12 MB / 420.4 MB, free: 4.688 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009284/0.4385, allocations: 8.542 MB / 428.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01283/0.4514, allocations: 4.965 MB / 433.9 MB, free: 6.094 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001044/0.4516, allocations: 56.56 kB / 433.9 MB, free: 6.031 MB / 366.1 MB Notification: Performance of pre-optimization done (n=219): time 6.442e-06/0.4516, allocations: 3.938 kB / 433.9 MB, free: 6.027 MB / 366.1 MB Notification: Performance of matching and sorting (n=238): time 0.02678/0.4784, allocations: 11.05 MB / 445 MB, free: 10.76 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.863e-05/0.4785, allocations: 77.41 kB / 445 MB, free: 10.67 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005878/0.4844, allocations: 2.809 MB / 447.9 MB, free: 7.852 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003748/0.4848, allocations: 65.7 kB / 447.9 MB, free: 7.781 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00198/0.4868, allocations: 2.326 MB / 450.2 MB, free: 5.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008701/0.4877, allocations: 0.8203 MB / 451.1 MB, free: 4.598 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002509/0.4879, allocations: 60 kB / 451.1 MB, free: 4.539 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002403/0.4882, allocations: 424.2 kB / 451.5 MB, free: 4.117 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002315/0.4905, allocations: 1.318 MB / 452.9 MB, free: 2.797 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00296/0.4935, allocations: 2.194 MB / 455 MB, free: 220 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2222/0.7157, allocations: 1.684 MB / 456.7 MB, free: 104.7 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.834e-05/0.7158, allocations: 9.047 kB / 456.7 MB, free: 104.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=383) (initialization): time 0.00909/0.7249, allocations: 4.544 MB / 461.3 MB, free: 103.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.568e-05/0.725, allocations: 26.83 kB / 461.3 MB, free: 103.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.076e-05/0.7251, allocations: 27.47 kB / 461.3 MB, free: 103.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001188/0.7263, allocations: 0.5162 MB / 461.9 MB, free: 103 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002745/0.729, allocations: 0.7182 MB / 462.6 MB, free: 103 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007313/0.7364, allocations: 9.448 MB / 472 MB, free: 95.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003066/0.7395, allocations: 185.3 kB / 472.2 MB, free: 95.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003191/0.7398, allocations: 127.1 kB / 472.3 MB, free: 95.07 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * 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 (358): * Single equations (assignments): 351 * 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%) 11,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002956/0.7428, allocations: 1.528 MB / 473.9 MB, free: 94.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006637/0.7435, allocations: 314.4 kB / 474.2 MB, free: 94.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005842/0.7493, allocations: 4.04 MB / 478.2 MB, free: 92.44 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.806e-05/0.7493, allocations: 27.06 kB / 478.2 MB, free: 92.44 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-05/0.7494, allocations: 7.844 kB / 478.2 MB, free: 92.44 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.963e-05/0.7494, allocations: 10.92 kB / 478.2 MB, free: 92.44 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01293/0.7623, allocations: 8.816 MB / 487.1 MB, free: 85.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.116e-05/0.7624, allocations: 12.12 kB / 487.1 MB, free: 85.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001602/0.764, allocations: 419.4 kB / 487.5 MB, free: 84.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001542/0.7655, allocations: 0.7227 MB / 488.2 MB, free: 84.14 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001486/0.7657, allocations: 63.97 kB / 488.3 MB, free: 84.08 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01028/0.776, allocations: 15.37 MB / 0.4918 GB, free: 67.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.776, allocations: 7.938 kB / 0.4918 GB, free: 67.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007728/0.7838, allocations: 6.269 MB / 0.498 GB, free: 61.26 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001718/0.7855, allocations: 0.661 MB / 0.4986 GB, free: 60.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004411/0.786, allocations: 63.94 kB / 0.4987 GB, free: 60.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001404/0.7874, allocations: 147.9 kB / 0.4988 GB, free: 60.37 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004529/0.7878, allocations: 185.6 kB / 0.499 GB, free: 60.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000138/0.788, allocations: 71.98 kB / 0.4991 GB, free: 60.12 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002534/0.7905, allocations: 1.893 MB / 0.5009 GB, free: 58.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7906, allocations: 0 / 0.5009 GB, free: 58.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003213/0.7938, allocations: 0.941 MB / 0.5018 GB, free: 57.29 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * 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 (201): * Single equations (assignments): 193 * 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%) 11,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004871/0.7943, allocations: 218.3 kB / 0.502 GB, free: 57.08 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005199/0.7995, allocations: 4.072 MB / 0.506 GB, free: 52.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.545e-06/0.7995, allocations: 4 kB / 0.506 GB, free: 52.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003411/0.8029, allocations: 2.731 MB / 0.5087 GB, free: 50.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003827/0.8068, allocations: 0.785 MB / 0.5094 GB, free: 49.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01662/0.8234, allocations: 11.53 MB / 0.5207 GB, free: 37.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002728/0.8262, allocations: 3.392 MB / 0.524 GB, free: 34.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002749/0.829, allocations: 0.7697 MB / 0.5248 GB, free: 33.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005553/0.8295, allocations: 223.4 kB / 0.525 GB, free: 33.28 MB / 382.1 MB Notification: Performance of SimCode: time 1.433e-06/0.8296, allocations: 4 kB / 0.525 GB, free: 33.28 MB / 382.1 MB Notification: Performance of Templates: time 0.07029/0.8998, allocations: 43.55 MB / 0.5675 GB, free: 5.668 MB / 398.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) Environment - environmentSimulation: