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_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.SMR_Inverter_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00926/0.009259, allocations: 100.4 kB / 15.73 MB, free: 5.988 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.002141/0.002141, allocations: 192.5 kB / 16.67 MB, free: 5.91 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.455/1.455, allocations: 205.1 MB / 222.5 MB, free: 4.383 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.001245/0.001245, allocations: 50.39 kB / 326.6 MB, free: 14.58 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1024, allocations: 46.63 MB / 373.2 MB, free: 1.379 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.02377/0.1262, allocations: 23.7 MB / 396.9 MB, free: 9.574 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01508/0.1414, allocations: 6.554 MB / 403.5 MB, free: 3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004377/0.1458, allocations: 143.4 kB / 403.6 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004953/0.1508, allocations: 1.568 MB / 405.2 MB, free: 1.281 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007728/0.1585, allocations: 2.119 MB / 407.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004514/0.1631, allocations: 1.442 MB / 408.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01327/0.1764, allocations: 8.095 MB / 416.8 MB, free: 5.578 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009298/0.1857, allocations: 7.142 MB / 424 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007279/0.193, allocations: 3.809 MB / 427.8 MB, free: 10.52 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007841/0.2009, allocations: 4.418 MB / 432.2 MB, free: 6.086 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003351/0.2043, allocations: 1.098 MB / 433.3 MB, free: 4.988 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004659/0.209, allocations: 1.301 MB / 434.6 MB, free: 3.688 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004331/0.2133, allocations: 2.439 MB / 437 MB, free: 1.242 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01022/0.2236, allocations: 4.517 MB / 441.5 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2737/0.4973, allocations: 14.17 MB / 455.7 MB, free: 28.32 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/0.4973, allocations: 1.312 kB / 455.7 MB, free: 28.32 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.4974, allocations: 0 / 455.7 MB, free: 28.32 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005903/0.498, allocations: 1.656 kB / 455.7 MB, free: 28.32 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.03339/0.5313, allocations: 8.844 MB / 464.6 MB, free: 25.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.5314, allocations: 12.39 kB / 464.6 MB, free: 25.59 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01151/0.5429, allocations: 1.66 MB / 466.2 MB, free: 25.2 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01442/0.5574, allocations: 4.558 MB / 470.8 MB, free: 24.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008868/0.5583, allocations: 0.5116 MB / 471.3 MB, free: 24.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003805/0.5622, allocations: 0.6833 MB / 472 MB, free: 24.31 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02979/0.592, allocations: 9.437 MB / 481.4 MB, free: 22.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004149/0.5924, allocations: 14.59 kB / 481.4 MB, free: 22.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003019/0.5955, allocations: 282.6 kB / 481.7 MB, free: 21.89 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003673/0.5958, allocations: 337.1 kB / 482 MB, free: 21.86 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01914/0.615, allocations: 8.048 MB / 490.1 MB, free: 18.12 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05404/0.6691, allocations: 28.41 MB / 0.5063 GB, free: 6.586 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01656/0.6857, allocations: 16.6 MB / 0.5226 GB, free: 4.125 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005083/0.6908, allocations: 2.907 MB / 0.5254 GB, free: 1.207 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01518/0.706, allocations: 7.697 MB / 0.5329 GB, free: 9.48 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.765e-05/0.7061, allocations: 64.59 kB / 0.533 GB, free: 9.406 MB / 430.1 MB Notification: Performance of pre-optimization done (n=259): time 4.829e-06/0.7061, allocations: 4 kB / 0.533 GB, free: 9.402 MB / 430.1 MB Notification: Performance of matching and sorting (n=265): time 0.0256/0.7317, allocations: 10.99 MB / 0.5437 GB, free: 14.14 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.312e-05/0.7318, allocations: 77.5 kB / 0.5438 GB, free: 14.05 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005652/0.7375, allocations: 3.376 MB / 0.5471 GB, free: 10.68 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004858/0.738, allocations: 73.7 kB / 0.5471 GB, free: 10.61 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002382/0.7404, allocations: 3.037 MB / 0.5501 GB, free: 7.543 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001182/0.7416, allocations: 0.9159 MB / 0.551 GB, free: 6.637 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009818/0.7425, allocations: 0.5896 MB / 0.5516 GB, free: 6.039 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.7427, allocations: 311.3 kB / 0.5519 GB, free: 5.734 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002392/0.7451, allocations: 1.393 MB / 0.5532 GB, free: 4.34 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002923/0.748, allocations: 2.429 MB / 0.5556 GB, free: 1.473 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005608/0.7536, allocations: 4.072 MB / 0.5596 GB, free: 13.05 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.652e-05/0.7537, allocations: 12 kB / 0.5596 GB, free: 13.04 MB / 462.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.008435/0.7621, allocations: 4.7 MB / 0.5642 GB, free: 8.457 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.229e-05/0.7622, allocations: 19.56 kB / 0.5642 GB, free: 8.441 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.761e-05/0.7623, allocations: 32 kB / 0.5642 GB, free: 8.41 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001011/0.7633, allocations: 401.1 kB / 0.5646 GB, free: 8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003054/0.7664, allocations: 0.7955 MB / 0.5654 GB, free: 7.254 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007482/0.7739, allocations: 7.964 MB / 0.5732 GB, free: 14.79 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003944/0.7778, allocations: 159.9 kB / 0.5733 GB, free: 14.63 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006548/0.7785, allocations: 152 kB / 0.5735 GB, free: 14.48 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * 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 (411): * Single equations (assignments): 405 * 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,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004558/0.7831, allocations: 2.073 MB / 0.5755 GB, free: 12.45 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001117/0.7842, allocations: 367.5 kB / 0.5758 GB, free: 12.08 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007693/0.7919, allocations: 4.213 MB / 0.58 GB, free: 7.797 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.787e-05/0.792, allocations: 28 kB / 0.58 GB, free: 7.77 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.997e-05/0.792, allocations: 12 kB / 0.58 GB, free: 7.758 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.939e-05/0.7921, allocations: 15.89 kB / 0.58 GB, free: 7.742 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01847/0.8105, allocations: 9.876 MB / 0.5897 GB, free: 13.78 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.9e-05/0.8106, allocations: 3.938 kB / 0.5897 GB, free: 13.77 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001967/0.8126, allocations: 408.9 kB / 0.59 GB, free: 13.39 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002423/0.815, allocations: 0.8479 MB / 0.5909 GB, free: 12.53 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003572/0.8154, allocations: 79.25 kB / 0.591 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01826/0.8337, allocations: 17.5 MB / 0.608 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/0.8337, allocations: 7.938 kB / 0.608 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01072/0.8444, allocations: 6.023 MB / 0.6139 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002942/0.8475, allocations: 0.7464 MB / 0.6147 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000783/0.8483, allocations: 64 kB / 0.6147 GB, free: 3.055 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001879/0.8502, allocations: 127.9 kB / 0.6148 GB, free: 2.93 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000715/0.8509, allocations: 205 kB / 0.615 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001774/0.8511, allocations: 75.97 kB / 0.6151 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004182/0.8553, allocations: 2.296 MB / 0.6173 GB, free: 384 kB / 0.4981 GB Notification: Performance of sort global known variables: time 5.51e-07/0.8553, allocations: 0 / 0.6173 GB, free: 384 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00592/0.8612, allocations: 1.145 MB / 0.6185 GB, free: 15.23 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 14 (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,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.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 (198): * Single equations (assignments): 191 * 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,12,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006624/0.8619, allocations: 219.5 kB / 0.6187 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006791/0.8687, allocations: 4.133 MB / 0.6227 GB, free: 10.89 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/0.8687, allocations: 4 kB / 0.6227 GB, free: 10.88 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004556/0.8733, allocations: 2.85 MB / 0.6255 GB, free: 7.98 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005196/0.8785, allocations: 1 MB / 0.6265 GB, free: 6.977 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2481/1.127, allocations: 11.97 MB / 0.6382 GB, free: 188.4 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005826/1.133, allocations: 4.227 MB / 0.6423 GB, free: 187.6 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003825/1.136, allocations: 0.8396 MB / 0.6431 GB, free: 187.6 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009047/1.137, allocations: 252 kB / 0.6434 GB, free: 187.6 MB / 0.5137 GB Notification: Performance of SimCode: time 2.053e-06/1.137, allocations: 0 / 0.6434 GB, free: 187.6 MB / 0.5137 GB Notification: Performance of Templates: time 0.08384/1.221, allocations: 53.35 MB / 0.6955 GB, free: 148.1 MB / 0.5137 GB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe 2>&1)