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_MultiPhase.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_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001149/0.001153, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 193.5 kB / 16.53 MB, free: 6.391 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.329/1.329, allocations: 205.1 MB / 222.4 MB, free: 4.582 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.001228/0.001228, allocations: 55.92 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2208/0.222, allocations: 46.63 MB / 325.3 MB, free: 2.066 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase): time 0.02883/0.2509, allocations: 25.33 MB / 350.7 MB, free: 10.64 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01754/0.2685, allocations: 7.064 MB / 357.7 MB, free: 3.555 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006612/0.2751, allocations: 151.4 kB / 357.9 MB, free: 3.406 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006577/0.2818, allocations: 1.715 MB / 359.6 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009765/0.2916, allocations: 2.259 MB / 361.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005371/0.297, allocations: 1.524 MB / 363.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01192/0.3089, allocations: 8.465 MB / 371.8 MB, free: 5.371 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01267/0.3216, allocations: 7.286 MB / 379.1 MB, free: 14 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008125/0.3298, allocations: 3.968 MB / 383.1 MB, free: 10.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008897/0.3387, allocations: 4.6 MB / 387.7 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003805/0.3426, allocations: 1.133 MB / 388.8 MB, free: 4.266 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005137/0.3477, allocations: 1.351 MB / 390.2 MB, free: 2.914 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004135/0.3519, allocations: 2.528 MB / 392.7 MB, free: 388 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00952/0.3614, allocations: 4.722 MB / 397.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01832/0.3798, allocations: 14.59 MB / 412 MB, free: 13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.824e-06/0.3798, allocations: 4 kB / 412 MB, free: 13 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3798, allocations: 3.938 kB / 412 MB, free: 12.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004462/0.3803, allocations: 0 / 412 MB, free: 12.99 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02724/0.4075, allocations: 9.224 MB / 421.2 MB, free: 3.672 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.4076, allocations: 11.89 kB / 421.3 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01051/0.4181, allocations: 1.744 MB / 423 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01207/0.4302, allocations: 4.688 MB / 427.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006433/0.4309, allocations: 0.5383 MB / 428.2 MB, free: 12.61 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002669/0.4336, allocations: 0.7223 MB / 429 MB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02344/0.457, allocations: 9.773 MB / 438.7 MB, free: 2.031 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002526/0.4573, allocations: 4 kB / 438.7 MB, free: 2.027 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001747/0.4591, allocations: 296 kB / 439 MB, free: 1.738 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003782/0.4595, allocations: 358.6 kB / 439.4 MB, free: 1.387 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01965/0.4791, allocations: 8.291 MB / 447.7 MB, free: 9.086 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3766/0.8557, allocations: 30.47 MB / 478.1 MB, free: 87.34 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01208/0.8679, allocations: 16.09 MB / 494.2 MB, free: 72.24 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004393/0.8723, allocations: 3.047 MB / 497.3 MB, free: 70.72 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01234/0.8847, allocations: 8.083 MB / 0.4935 GB, free: 64.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.386e-05/0.8848, allocations: 64.78 kB / 0.4936 GB, free: 64.4 MB / 382.1 MB Notification: Performance of pre-optimization done (n=281): time 4.899e-06/0.8848, allocations: 0 / 0.4936 GB, free: 64.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=289): time 0.02214/0.9069, allocations: 11.59 MB / 0.5049 GB, free: 52.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.723e-05/0.907, allocations: 81.69 kB / 0.505 GB, free: 52.42 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006359/0.9134, allocations: 3.641 MB / 0.5085 GB, free: 48.8 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004125/0.9138, allocations: 73.7 kB / 0.5086 GB, free: 48.72 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001688/0.9155, allocations: 3.183 MB / 0.5117 GB, free: 45.52 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008455/0.9164, allocations: 0.9961 MB / 0.5127 GB, free: 44.53 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001114/0.9175, allocations: 0.6452 MB / 0.5133 GB, free: 43.88 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.649e-05/0.9175, allocations: 301.1 kB / 0.5136 GB, free: 43.58 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002235/0.9198, allocations: 1.483 MB / 0.515 GB, free: 42.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002631/0.9224, allocations: 2.628 MB / 0.5176 GB, free: 38.97 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004902/0.9273, allocations: 4.392 MB / 0.5219 GB, free: 34.05 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.951e-05/0.9274, allocations: 12 kB / 0.5219 GB, free: 34.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.008093/0.9355, allocations: 5.017 MB / 0.5268 GB, free: 28.94 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.822e-05/0.9356, allocations: 20 kB / 0.5268 GB, free: 28.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.868e-05/0.9356, allocations: 36 kB / 0.5269 GB, free: 28.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009092/0.9366, allocations: 401.9 kB / 0.5272 GB, free: 28.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003016/0.9396, allocations: 0.8697 MB / 0.5281 GB, free: 27.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005286/0.9449, allocations: 7.973 MB / 0.5359 GB, free: 19.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00329/0.9482, allocations: 168 kB / 0.536 GB, free: 18.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003136/0.9485, allocations: 175.9 kB / 0.5362 GB, free: 18.75 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 162 * 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 (451): * Single equations (assignments): 445 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * 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): 4 systems {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (3,14,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003734/0.9523, allocations: 2.136 MB / 0.5383 GB, free: 16.6 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008839/0.9532, allocations: 403.1 kB / 0.5387 GB, free: 16.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00648/0.9596, allocations: 4.455 MB / 0.543 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-05/0.9597, allocations: 28 kB / 0.543 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.619e-05/0.9597, allocations: 12 kB / 0.5431 GB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.272e-05/0.9597, allocations: 11.95 kB / 0.5431 GB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01787/0.9776, allocations: 10.48 MB / 0.5533 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.646e-05/0.9777, allocations: 4 kB / 0.5533 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001799/0.9795, allocations: 435.4 kB / 0.5537 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002136/0.9816, allocations: 0.8801 MB / 0.5546 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000261/0.9819, allocations: 79.97 kB / 0.5547 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01833/1, allocations: 17.65 MB / 0.5719 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.566e-06/1, allocations: 15.92 kB / 0.5719 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01202/1.012, allocations: 6.413 MB / 0.5782 GB, free: 6.297 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002385/1.015, allocations: 0.8008 MB / 0.579 GB, free: 5.473 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001419/1.016, allocations: 71.92 kB / 0.579 GB, free: 5.402 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002747/1.019, allocations: 139.9 kB / 0.5792 GB, free: 5.266 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006565/1.02, allocations: 225.7 kB / 0.5794 GB, free: 5.043 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002537/1.02, allocations: 83.98 kB / 0.5794 GB, free: 4.961 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.005653/1.026, allocations: 2.465 MB / 0.5819 GB, free: 2.516 MB / 414.1 MB Notification: Performance of sort global known variables: time 5.81e-07/1.026, allocations: 0 / 0.5819 GB, free: 2.516 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005526/1.031, allocations: 1.214 MB / 0.583 GB, free: 1.305 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 14 (vfController3.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,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * 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 (220): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,5,100.0%), (4,33,93.8%), (1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,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.0005979/1.032, allocations: 219.5 kB / 0.5833 GB, free: 1.086 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01487/1.047, allocations: 6.16 MB / 0.5893 GB, free: 10.84 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.194e-05/1.047, allocations: 4 kB / 0.5893 GB, free: 10.84 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004984/1.052, allocations: 2.991 MB / 0.5922 GB, free: 7.75 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00679/1.059, allocations: 1.113 MB / 0.5933 GB, free: 6.637 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02912/1.088, allocations: 12.63 MB / 0.6056 GB, free: 9.91 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007668/1.095, allocations: 4.343 MB / 0.6099 GB, free: 5.527 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004727/1.1, allocations: 0.8903 MB / 0.6107 GB, free: 4.633 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001248/1.101, allocations: 279.4 kB / 0.611 GB, free: 4.359 MB / 446.1 MB Notification: Performance of SimCode: time 1.333e-06/1.101, allocations: 0 / 0.611 GB, free: 4.359 MB / 446.1 MB Notification: Performance of Templates: time 0.2967/1.398, allocations: 60.09 MB / 0.6697 GB, free: 110.8 MB / 446.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe 2>&1)