Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.0007836/0.0007837, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006521/0.006521, allocations: 170 kB / 16.26 MB, free: 6.613 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.432/1.432, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0004342/0.0004342, allocations: 16 kB / 279.5 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.2362, allocations: 47.59 MB / 327 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase): time 0.02395/0.2602, allocations: 23.95 MB / 351 MB, free: 11.35 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01553/0.2758, allocations: 6.924 MB / 357.9 MB, free: 4.398 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005554/0.2814, allocations: 143.4 kB / 358.1 MB, free: 4.258 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00504/0.2865, allocations: 1.461 MB / 359.5 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008895/0.2954, allocations: 2.032 MB / 361.5 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004409/0.2998, allocations: 1.377 MB / 362.9 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01344/0.3133, allocations: 8.959 MB / 371.9 MB, free: 6.363 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008857/0.3222, allocations: 5.987 MB / 377.9 MB, free: 300 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005338/0.3276, allocations: 2.781 MB / 380.7 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006321/0.3339, allocations: 3.691 MB / 384.3 MB, free: 9.793 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001544/0.3355, allocations: 468 kB / 384.8 MB, free: 9.336 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002691/0.3382, allocations: 0.6716 MB / 385.5 MB, free: 8.664 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001605/0.3398, allocations: 1.72 MB / 387.2 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005131/0.3449, allocations: 3.849 MB / 391 MB, free: 3.062 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01557/0.3605, allocations: 13.75 MB / 404.8 MB, free: 5.266 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.3606, allocations: 0 / 404.8 MB, free: 5.266 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.42e-06/0.3606, allocations: 0 / 404.8 MB, free: 5.266 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000561/0.3612, allocations: 3.938 kB / 404.8 MB, free: 5.262 MB / 334.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.02575/0.3869, allocations: 7.735 MB / 412.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.387, allocations: 8.031 kB / 412.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01125/0.3983, allocations: 1.748 MB / 414.3 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01117/0.4095, allocations: 4.61 MB / 418.9 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006105/0.4101, allocations: 0.5383 MB / 419.4 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002939/0.4131, allocations: 0.7146 MB / 420.1 MB, free: 5.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0254/0.4385, allocations: 9.789 MB / 429.9 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001986/0.4387, allocations: 15.84 kB / 430 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009438/0.4397, allocations: 292 kB / 430.2 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003433/0.44, allocations: 362.6 kB / 430.6 MB, free: 11.21 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02119/0.4612, allocations: 8.322 MB / 438.9 MB, free: 2.875 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4363/0.8975, allocations: 30.64 MB / 469.6 MB, free: 87.29 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01204/0.9096, allocations: 16.08 MB / 485.6 MB, free: 74.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005019/0.9147, allocations: 3.073 MB / 488.7 MB, free: 73.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01296/0.9277, allocations: 8.121 MB / 496.8 MB, free: 67.8 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.902e-05/0.9278, allocations: 64.03 kB / 496.9 MB, free: 67.74 MB / 382.1 MB Notification: Performance of pre-optimization done (n=281): time 5.08e-06/0.9278, allocations: 0 / 496.9 MB, free: 67.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=289): time 0.02153/0.9494, allocations: 11.71 MB / 0.4967 GB, free: 60.68 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.723e-05/0.9495, allocations: 81.62 kB / 0.4968 GB, free: 60.59 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004587/0.954, allocations: 3.653 MB / 0.5003 GB, free: 56.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002973/0.9544, allocations: 73.7 kB / 0.5004 GB, free: 56.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001575/0.9559, allocations: 3.187 MB / 0.5035 GB, free: 53.67 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007295/0.9567, allocations: 0.9989 MB / 0.5045 GB, free: 52.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003091/0.957, allocations: 289.6 kB / 0.5048 GB, free: 52.39 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.566e-05/0.9571, allocations: 301.1 kB / 0.505 GB, free: 52.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00213/0.9592, allocations: 1.495 MB / 0.5065 GB, free: 50.6 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002596/0.9618, allocations: 2.635 MB / 0.5091 GB, free: 47.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004878/0.9667, allocations: 4.42 MB / 0.5134 GB, free: 42.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.642e-05/0.9667, allocations: 12 kB / 0.5134 GB, free: 42.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.007573/0.9743, allocations: 5.052 MB / 0.5183 GB, free: 37.37 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.778e-05/0.9744, allocations: 23.98 kB / 0.5184 GB, free: 37.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.025e-05/0.9744, allocations: 36 kB / 0.5184 GB, free: 37.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008693/0.9753, allocations: 402.1 kB / 0.5188 GB, free: 36.9 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003011/0.9783, allocations: 0.8659 MB / 0.5196 GB, free: 36.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005025/0.9834, allocations: 7.359 MB / 0.5268 GB, free: 28.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003553/0.987, allocations: 180.1 kB / 0.527 GB, free: 27.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005212/0.9875, allocations: 167.9 kB / 0.5271 GB, free: 27.81 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.003861/0.9914, allocations: 2.136 MB / 0.5292 GB, free: 25.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008816/0.9923, allocations: 399.1 kB / 0.5296 GB, free: 25.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007056/0.9993, allocations: 4.486 MB / 0.534 GB, free: 20.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.062e-05/0.9994, allocations: 31.98 kB / 0.534 GB, free: 20.64 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.7e-05/0.9994, allocations: 12 kB / 0.534 GB, free: 20.63 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.488e-05/0.9995, allocations: 11.95 kB / 0.534 GB, free: 20.62 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01724/1.017, allocations: 10.52 MB / 0.5443 GB, free: 9.953 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.255e-05/1.017, allocations: 4.125 kB / 0.5443 GB, free: 9.949 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001758/1.019, allocations: 451.8 kB / 0.5448 GB, free: 9.508 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001996/1.021, allocations: 0.8682 MB / 0.5456 GB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002104/1.021, allocations: 79.91 kB / 0.5457 GB, free: 8.539 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0152/1.036, allocations: 16.22 MB / 0.5615 GB, free: 7.387 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.676e-06/1.036, allocations: 7.938 kB / 0.5615 GB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01226/1.048, allocations: 6.474 MB / 0.5679 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002622/1.051, allocations: 0.7968 MB / 0.5686 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009733/1.052, allocations: 67.98 kB / 0.5687 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002337/1.054, allocations: 151.9 kB / 0.5688 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006384/1.055, allocations: 221.7 kB / 0.569 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001971/1.055, allocations: 83.98 kB / 0.5691 GB, free: 15.36 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.005021/1.06, allocations: 2.465 MB / 0.5715 GB, free: 12.91 MB / 414.1 MB Notification: Performance of sort global known variables: time 2e-07/1.06, allocations: 0 / 0.5715 GB, free: 12.91 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005941/1.066, allocations: 1.215 MB / 0.5727 GB, free: 11.7 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.0008126/1.067, allocations: 207.7 kB / 0.5729 GB, free: 11.49 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007925/1.075, allocations: 4.391 MB / 0.5772 GB, free: 6.988 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/1.075, allocations: 0 / 0.5772 GB, free: 6.988 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0053/1.08, allocations: 3.012 MB / 0.5802 GB, free: 3.883 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007925/1.088, allocations: 1.055 MB / 0.5812 GB, free: 2.828 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02918/1.117, allocations: 15.86 MB / 0.5967 GB, free: 2.852 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005694/1.123, allocations: 4.351 MB / 0.6009 GB, free: 14.46 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003884/1.127, allocations: 0.8903 MB / 0.6018 GB, free: 13.57 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008641/1.128, allocations: 283.4 kB / 0.6021 GB, free: 13.29 MB / 446.1 MB Notification: Performance of SimCode: time 9.52e-07/1.128, allocations: 0 / 0.6021 GB, free: 13.29 MB / 446.1 MB Notification: Performance of Templates: time 0.3232/1.451, allocations: 57.06 MB / 0.6578 GB, free: 121.3 MB / 446.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe 2>&1)