Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001189/0.001189, allocations: 100.9 kB / 17.06 MB, free: 6.145 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.001335/0.001335, allocations: 195 kB / 18 MB, free: 5.219 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.374/1.374, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.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.001123/0.001123, allocations: 47.92 kB / 327.9 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08451/0.08564, allocations: 46.61 MB / 374.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.2297/0.3154, allocations: 23.72 MB / 398.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01818/0.3336, allocations: 6.547 MB / 404.8 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006978/0.3406, allocations: 145 kB / 404.9 MB, free: 9.547 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006618/0.3473, allocations: 1.566 MB / 406.5 MB, free: 8.688 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01092/0.3583, allocations: 2.124 MB / 408.6 MB, free: 7.254 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005351/0.3637, allocations: 1.442 MB / 410 MB, free: 6.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01421/0.3779, allocations: 8.082 MB / 418.1 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01405/0.392, allocations: 7.157 MB / 425.3 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009001/0.401, allocations: 3.84 MB / 429.1 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009611/0.4107, allocations: 4.418 MB / 433.5 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003543/0.4142, allocations: 1.094 MB / 434.6 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004834/0.4191, allocations: 1.304 MB / 435.9 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003528/0.4226, allocations: 2.443 MB / 438.4 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009034/0.4317, allocations: 4.509 MB / 442.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01748/0.4492, allocations: 14.18 MB / 457.1 MB, free: 12.89 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.251e-06/0.4492, allocations: 0 / 457.1 MB, free: 12.89 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4492, allocations: 0 / 457.1 MB, free: 12.89 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004395/0.4497, allocations: 4 kB / 457.1 MB, free: 12.89 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.02858/0.4783, allocations: 8.844 MB / 465.9 MB, free: 3.945 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.074e-05/0.4784, allocations: 11.89 kB / 465.9 MB, free: 3.934 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01016/0.4885, allocations: 1.663 MB / 467.6 MB, free: 2.262 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01092/0.4995, allocations: 4.549 MB / 472.1 MB, free: 13.63 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004341/0.5, allocations: 0.5141 MB / 472.7 MB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001812/0.5018, allocations: 0.6836 MB / 473.3 MB, free: 12.44 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02864/0.5304, allocations: 9.439 MB / 482.8 MB, free: 2.934 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000225/0.5307, allocations: 7.906 kB / 482.8 MB, free: 2.926 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001783/0.5325, allocations: 284 kB / 483.1 MB, free: 2.648 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006666/0.5332, allocations: 338.1 kB / 483.4 MB, free: 2.316 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02435/0.5575, allocations: 8.051 MB / 491.4 MB, free: 10.25 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05225/0.6098, allocations: 28.4 MB / 0.5077 GB, free: 13.22 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01706/0.627, allocations: 16.61 MB / 0.5239 GB, free: 10.73 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004813/0.6318, allocations: 2.924 MB / 0.5267 GB, free: 7.793 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01378/0.6456, allocations: 7.678 MB / 0.5342 GB, free: 15.95 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.934e-05/0.6457, allocations: 72.55 kB / 0.5343 GB, free: 15.87 MB / 478.1 MB Notification: Performance of pre-optimization done (n=259): time 4.429e-06/0.6457, allocations: 0 / 0.5343 GB, free: 15.87 MB / 478.1 MB Notification: Performance of matching and sorting (n=265): time 0.02188/0.6676, allocations: 10.99 MB / 0.545 GB, free: 4.547 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.49e-05/0.6677, allocations: 81.5 kB / 0.5451 GB, free: 4.453 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005553/0.6733, allocations: 3.369 MB / 0.5484 GB, free: 1.09 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004/0.6737, allocations: 69.7 kB / 0.5485 GB, free: 1.016 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2188/0.8925, allocations: 3.036 MB / 0.5514 GB, free: 144.7 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001186/0.8937, allocations: 0.9118 MB / 0.5523 GB, free: 144.1 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001178/0.8949, allocations: 0.5941 MB / 0.5529 GB, free: 144.1 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 7.076e-05/0.895, allocations: 305.9 kB / 0.5532 GB, free: 143.8 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002922/0.8979, allocations: 1.393 MB / 0.5546 GB, free: 143.8 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003521/0.9014, allocations: 2.432 MB / 0.5569 GB, free: 142.2 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005478/0.9069, allocations: 4.075 MB / 0.5609 GB, free: 139.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.568e-05/0.907, allocations: 8.906 kB / 0.5609 GB, free: 139.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.008366/0.9153, allocations: 4.699 MB / 0.5655 GB, free: 137.4 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.213e-05/0.9154, allocations: 19.31 kB / 0.5655 GB, free: 137.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.266e-05/0.9155, allocations: 32.28 kB / 0.5656 GB, free: 137.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001023/0.9165, allocations: 398.2 kB / 0.5659 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003084/0.9196, allocations: 0.7939 MB / 0.5667 GB, free: 137.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006291/0.9259, allocations: 7.969 MB / 0.5745 GB, free: 130.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003249/0.9292, allocations: 159.3 kB / 0.5746 GB, free: 130.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004072/0.9296, allocations: 150.3 kB / 0.5748 GB, free: 130.2 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.004465/0.9341, allocations: 2.081 MB / 0.5768 GB, free: 129.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009191/0.935, allocations: 363.9 kB / 0.5772 GB, free: 128.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007449/0.9425, allocations: 4.218 MB / 0.5813 GB, free: 126.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.105e-05/0.9425, allocations: 26.59 kB / 0.5813 GB, free: 126.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.816e-05/0.9426, allocations: 14.91 kB / 0.5813 GB, free: 126.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.408e-05/0.9426, allocations: 15.78 kB / 0.5813 GB, free: 126.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01599/0.9586, allocations: 9.867 MB / 0.591 GB, free: 122.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.291e-05/0.9587, allocations: 3.969 kB / 0.591 GB, free: 122.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001669/0.9604, allocations: 406.1 kB / 0.5914 GB, free: 122.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001847/0.9622, allocations: 0.8609 MB / 0.5922 GB, free: 122.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001738/0.9624, allocations: 73.2 kB / 0.5923 GB, free: 122.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01334/0.9757, allocations: 17.5 MB / 0.6094 GB, free: 106.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.9758, allocations: 4 kB / 0.6094 GB, free: 106.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008424/0.9842, allocations: 6.027 MB / 0.6153 GB, free: 100.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002136/0.9864, allocations: 0.7464 MB / 0.616 GB, free: 99.71 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004741/0.9869, allocations: 60 kB / 0.616 GB, free: 99.65 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001605/0.9885, allocations: 135.8 kB / 0.6162 GB, free: 99.52 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005264/0.989, allocations: 209.6 kB / 0.6164 GB, free: 99.31 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002076/0.9893, allocations: 71.98 kB / 0.6164 GB, free: 99.24 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003081/0.9923, allocations: 2.294 MB / 0.6187 GB, free: 96.96 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.61e-07/0.9924, allocations: 0 / 0.6187 GB, free: 96.96 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00409/0.9965, allocations: 1.143 MB / 0.6198 GB, free: 95.82 MB / 478.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.0004395/0.9969, allocations: 223.8 kB / 0.62 GB, free: 95.61 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005965/1.003, allocations: 4.129 MB / 0.624 GB, free: 91.36 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/1.003, allocations: 4 kB / 0.624 GB, free: 91.36 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003894/1.007, allocations: 2.848 MB / 0.6268 GB, free: 88.41 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004768/1.012, allocations: 1.001 MB / 0.6278 GB, free: 87.43 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02049/1.032, allocations: 11.99 MB / 0.6395 GB, free: 75.38 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003478/1.036, allocations: 4.223 MB / 0.6436 GB, free: 71.13 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002868/1.039, allocations: 0.8404 MB / 0.6445 GB, free: 70.29 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006343/1.039, allocations: 255.4 kB / 0.6447 GB, free: 70.04 MB / 478.1 MB Notification: Performance of SimCode: time 7.52e-07/1.039, allocations: 0 / 0.6447 GB, free: 70.04 MB / 478.1 MB Notification: Performance of Templates: time 0.07922/1.118, allocations: 54.04 MB / 0.6975 GB, free: 15.99 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe 2>&1)