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.001046/0.001046, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.008019/0.00802, allocations: 170.7 kB / 16.27 MB, free: 6.648 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.452/1.452, allocations: 205.4 MB / 222.4 MB, free: 5.793 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.0004392/0.0004393, allocations: 10.81 kB / 279.5 MB, free: 12.73 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2204/0.2209, allocations: 47.58 MB / 327 MB, free: 1.383 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.02158/0.2425, allocations: 22.4 MB / 349.4 MB, free: 12.93 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01388/0.2564, allocations: 6.41 MB / 355.8 MB, free: 6.492 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006034/0.2625, allocations: 131.4 kB / 356 MB, free: 6.363 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006801/0.2693, allocations: 1.336 MB / 357.3 MB, free: 5.02 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01182/0.2812, allocations: 1.9 MB / 359.2 MB, free: 3.109 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005475/0.2867, allocations: 1.314 MB / 360.5 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01417/0.3009, allocations: 8.52 MB / 369 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01091/0.3119, allocations: 5.883 MB / 374.9 MB, free: 3.262 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005624/0.3176, allocations: 2.637 MB / 377.6 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006639/0.3242, allocations: 3.527 MB / 381.1 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002325/0.3266, allocations: 448 kB / 381.5 MB, free: 12.63 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003627/0.3303, allocations: 0.6521 MB / 382.2 MB, free: 11.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003456/0.3337, allocations: 1.654 MB / 383.8 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007926/0.3417, allocations: 3.682 MB / 387.5 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01629/0.358, allocations: 13.24 MB / 400.8 MB, free: 9.332 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3581, allocations: 0 / 400.8 MB, free: 9.332 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.3581, allocations: 0 / 400.8 MB, free: 9.332 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004264/0.3585, allocations: 4 kB / 400.8 MB, free: 9.328 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: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.0216/0.3801, allocations: 7.421 MB / 408.2 MB, free: 1.812 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.3802, allocations: 12.03 kB / 408.2 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01027/0.3905, allocations: 1.67 MB / 409.9 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01041/0.4009, allocations: 4.42 MB / 414.3 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000535/0.4015, allocations: 0.5182 MB / 414.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002367/0.4039, allocations: 0.6794 MB / 415.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02469/0.4286, allocations: 9.458 MB / 424.9 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002091/0.4288, allocations: 15.83 kB / 425 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001198/0.43, allocations: 284 kB / 425.2 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003017/0.4303, allocations: 334.2 kB / 425.6 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02021/0.4506, allocations: 8.082 MB / 433.6 MB, free: 8.188 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3035/0.7541, allocations: 28.94 MB / 462.6 MB, free: 90.72 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01373/0.7678, allocations: 16.6 MB / 479.2 MB, free: 77.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004589/0.7725, allocations: 2.954 MB / 482.1 MB, free: 77.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01159/0.7841, allocations: 7.763 MB / 489.9 MB, free: 73.47 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.755e-05/0.7842, allocations: 71.69 kB / 490 MB, free: 73.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=259): time 3.797e-06/0.7842, allocations: 0 / 490 MB, free: 73.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=265): time 0.02007/0.8043, allocations: 11.11 MB / 0.4893 GB, free: 66.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.673e-05/0.8043, allocations: 83.31 kB / 0.4894 GB, free: 66.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005275/0.8096, allocations: 3.377 MB / 0.4927 GB, free: 64.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003122/0.8099, allocations: 73.48 kB / 0.4928 GB, free: 64.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001858/0.8118, allocations: 3.036 MB / 0.4958 GB, free: 62.05 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007187/0.8125, allocations: 0.9139 MB / 0.4966 GB, free: 61.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003202/0.8129, allocations: 272.9 kB / 0.4969 GB, free: 60.87 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.601e-05/0.813, allocations: 301.1 kB / 0.4972 GB, free: 60.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002084/0.815, allocations: 1.404 MB / 0.4986 GB, free: 59.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00251/0.8176, allocations: 2.45 MB / 0.501 GB, free: 56.26 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004366/0.8219, allocations: 4.113 MB / 0.505 GB, free: 51.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.244e-05/0.822, allocations: 12 kB / 0.505 GB, free: 51.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.006317/0.8283, allocations: 4.724 MB / 0.5096 GB, free: 46.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.83e-05/0.8283, allocations: 23.94 kB / 0.5096 GB, free: 46.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.119e-05/0.8284, allocations: 32 kB / 0.5096 GB, free: 46.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008055/0.8292, allocations: 405.5 kB / 0.51 GB, free: 46.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002573/0.8318, allocations: 0.8015 MB / 0.5108 GB, free: 45.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004731/0.8365, allocations: 7.346 MB / 0.518 GB, free: 37.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002674/0.8392, allocations: 159.8 kB / 0.5181 GB, free: 37.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000188/0.8394, allocations: 148 kB / 0.5183 GB, free: 37.39 MB / 382.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.003413/0.8428, allocations: 2.086 MB / 0.5203 GB, free: 35.3 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006597/0.8435, allocations: 367.5 kB / 0.5207 GB, free: 34.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006177/0.8497, allocations: 4.243 MB / 0.5248 GB, free: 30.58 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.707e-05/0.8497, allocations: 28.12 kB / 0.5248 GB, free: 30.55 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.76e-05/0.8497, allocations: 16 kB / 0.5249 GB, free: 30.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-05/0.8498, allocations: 15.94 kB / 0.5249 GB, free: 30.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0135/0.8633, allocations: 9.898 MB / 0.5345 GB, free: 20.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.073e-05/0.8633, allocations: 4 kB / 0.5345 GB, free: 20.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001602/0.8649, allocations: 415.8 kB / 0.5349 GB, free: 20.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001853/0.8668, allocations: 0.8476 MB / 0.5358 GB, free: 19.19 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001951/0.867, allocations: 75.97 kB / 0.5358 GB, free: 19.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01239/0.8794, allocations: 16.08 MB / 0.5515 GB, free: 2.113 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.8794, allocations: 4 kB / 0.5516 GB, free: 2.109 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009582/0.889, allocations: 6.074 MB / 0.5575 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002523/0.8916, allocations: 0.7503 MB / 0.5582 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005579/0.8922, allocations: 60 kB / 0.5583 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00164/0.8938, allocations: 147.8 kB / 0.5584 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004978/0.8943, allocations: 205.6 kB / 0.5586 GB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001554/0.8945, allocations: 83.97 kB / 0.5587 GB, free: 10.57 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.004146/0.8986, allocations: 2.29 MB / 0.5609 GB, free: 8.293 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.8986, allocations: 0 / 0.5609 GB, free: 8.293 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004198/0.9028, allocations: 1.139 MB / 0.562 GB, free: 7.156 MB / 398.1 MB 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.0004657/0.9033, allocations: 212.2 kB / 0.5622 GB, free: 6.941 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006502/0.9098, allocations: 4.152 MB / 0.5663 GB, free: 2.672 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.9099, allocations: 0 / 0.5663 GB, free: 2.672 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004332/0.9142, allocations: 2.867 MB / 0.5691 GB, free: 15.71 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00574/0.92, allocations: 0.9522 MB / 0.57 GB, free: 14.75 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02218/0.9422, allocations: 15.24 MB / 0.5849 GB, free: 15.43 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004111/0.9463, allocations: 4.227 MB / 0.589 GB, free: 11.18 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003112/0.9494, allocations: 0.8326 MB / 0.5899 GB, free: 10.34 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006769/0.9501, allocations: 255.4 kB / 0.5901 GB, free: 10.09 MB / 430.1 MB Notification: Performance of SimCode: time 1.132e-06/0.9501, allocations: 4 kB / 0.5901 GB, free: 10.08 MB / 430.1 MB Notification: Performance of Templates: time 0.3048/1.255, allocations: 52.81 MB / 0.6417 GB, free: 137 MB / 446.1 MB 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)