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.001133/0.001133, 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.001221/0.001221, allocations: 198.4 kB / 16.54 MB, free: 6.672 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.358/1.358, allocations: 205.1 MB / 222.4 MB, free: 4.629 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.001268/0.001268, allocations: 52.39 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2247/0.226, allocations: 46.64 MB / 325.3 MB, free: 1.965 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.02379/0.2498, allocations: 23.7 MB / 349 MB, free: 12.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01584/0.2657, allocations: 6.558 MB / 355.6 MB, free: 5.648 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006227/0.272, allocations: 147.4 kB / 355.7 MB, free: 5.504 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005775/0.2779, allocations: 1.564 MB / 357.3 MB, free: 3.93 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008431/0.2863, allocations: 2.115 MB / 359.4 MB, free: 1.801 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004549/0.2909, allocations: 1.442 MB / 360.8 MB, free: 364 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01351/0.3044, allocations: 8.029 MB / 368.9 MB, free: 8.285 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01374/0.3182, allocations: 7.165 MB / 376 MB, free: 1.031 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007447/0.3257, allocations: 3.801 MB / 379.8 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007621/0.3334, allocations: 4.41 MB / 384.3 MB, free: 8.789 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003602/0.337, allocations: 1.094 MB / 385.3 MB, free: 7.695 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005032/0.342, allocations: 1.312 MB / 386.7 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004616/0.3467, allocations: 2.443 MB / 389.1 MB, free: 3.934 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009872/0.3566, allocations: 4.516 MB / 393.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02076/0.3774, allocations: 14.06 MB / 407.7 MB, free: 1.293 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.755e-06/0.3774, allocations: 0 / 407.7 MB, free: 1.293 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3775, allocations: 0 / 407.7 MB, free: 1.293 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0005702/0.378, allocations: 0 / 407.7 MB, free: 1.293 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.03041/0.4085, allocations: 8.844 MB / 416.5 MB, free: 8.352 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.614e-05/0.4085, allocations: 11.89 kB / 416.5 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01048/0.419, allocations: 1.666 MB / 418.2 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01091/0.43, allocations: 4.506 MB / 422.7 MB, free: 2.082 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006863/0.4307, allocations: 0.5143 MB / 423.2 MB, free: 1.566 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002816/0.4335, allocations: 0.6873 MB / 423.9 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02598/0.4595, allocations: 9.431 MB / 433.3 MB, free: 7.383 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003508/0.4599, allocations: 15.83 kB / 433.4 MB, free: 7.367 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002315/0.4623, allocations: 284 kB / 433.6 MB, free: 7.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003771/0.4626, allocations: 326.2 kB / 434 MB, free: 6.77 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01852/0.4812, allocations: 8.059 MB / 442 MB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2122/0.6935, allocations: 28.79 MB / 470.8 MB, free: 90.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01267/0.7062, allocations: 16.59 MB / 487.4 MB, free: 75.42 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004213/0.7104, allocations: 2.936 MB / 490.3 MB, free: 73.97 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0118/0.7222, allocations: 7.731 MB / 498.1 MB, free: 68.76 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.664e-05/0.7223, allocations: 60.08 kB / 498.1 MB, free: 68.7 MB / 382.1 MB Notification: Performance of pre-optimization done (n=259): time 3.998e-06/0.7223, allocations: 0 / 498.1 MB, free: 68.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=265): time 0.02106/0.7434, allocations: 10.99 MB / 0.4972 GB, free: 60.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.799e-05/0.7435, allocations: 77.5 kB / 0.4973 GB, free: 60 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005078/0.7486, allocations: 3.377 MB / 0.5006 GB, free: 56.63 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004067/0.749, allocations: 69.7 kB / 0.5006 GB, free: 56.56 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001442/0.7504, allocations: 3.042 MB / 0.5036 GB, free: 53.49 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007253/0.7512, allocations: 0.9077 MB / 0.5045 GB, free: 52.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001019/0.7522, allocations: 0.6012 MB / 0.5051 GB, free: 51.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.782e-05/0.7523, allocations: 309 kB / 0.5054 GB, free: 51.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002147/0.7544, allocations: 1.389 MB / 0.5067 GB, free: 50.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00278/0.7572, allocations: 2.43 MB / 0.5091 GB, free: 47.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005452/0.7627, allocations: 4.078 MB / 0.5131 GB, free: 42.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.004e-05/0.7628, allocations: 12 kB / 0.5131 GB, free: 42.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.007585/0.7704, allocations: 4.693 MB / 0.5177 GB, free: 38.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.47e-05/0.7705, allocations: 23.94 kB / 0.5177 GB, free: 38.03 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.74e-05/0.7705, allocations: 35.94 kB / 0.5177 GB, free: 38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008889/0.7714, allocations: 400.3 kB / 0.5181 GB, free: 37.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002797/0.7742, allocations: 0.8034 MB / 0.5189 GB, free: 36.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005387/0.7796, allocations: 7.974 MB / 0.5267 GB, free: 28.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003026/0.7827, allocations: 159.8 kB / 0.5268 GB, free: 28.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000434/0.7831, allocations: 152 kB / 0.527 GB, free: 27.95 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.003354/0.7865, allocations: 2.07 MB / 0.529 GB, free: 25.87 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008451/0.7873, allocations: 371.5 kB / 0.5293 GB, free: 25.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006822/0.7942, allocations: 4.215 MB / 0.5335 GB, free: 21.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.516e-05/0.7942, allocations: 28 kB / 0.5335 GB, free: 21.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-05/0.7942, allocations: 15.94 kB / 0.5335 GB, free: 21.13 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.54e-05/0.7943, allocations: 11.95 kB / 0.5335 GB, free: 21.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01481/0.8091, allocations: 9.871 MB / 0.5432 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.197e-05/0.8091, allocations: 4 kB / 0.5432 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001658/0.8108, allocations: 403.4 kB / 0.5435 GB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001892/0.8127, allocations: 0.8557 MB / 0.5444 GB, free: 9.82 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002048/0.8129, allocations: 71.97 kB / 0.5445 GB, free: 9.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01527/0.8282, allocations: 17.52 MB / 0.5616 GB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.8282, allocations: 4 kB / 0.5616 GB, free: 7.281 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01024/0.8385, allocations: 6.024 MB / 0.5674 GB, free: 1.055 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001878/0.8404, allocations: 0.7426 MB / 0.5682 GB, free: 296 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001063/0.8415, allocations: 60 kB / 0.5682 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00228/0.8438, allocations: 131.9 kB / 0.5684 GB, free: 104 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005153/0.8443, allocations: 210.3 kB / 0.5686 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002075/0.8445, allocations: 75.98 kB / 0.5686 GB, free: 15.82 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004519/0.8491, allocations: 2.294 MB / 0.5709 GB, free: 13.54 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.8491, allocations: 0 / 0.5709 GB, free: 13.54 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004703/0.8538, allocations: 1.139 MB / 0.572 GB, free: 12.4 MB / 414.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.000644/0.8545, allocations: 223.9 kB / 0.5722 GB, free: 12.18 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01339/0.8679, allocations: 5.735 MB / 0.5778 GB, free: 6.348 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/0.8679, allocations: 0 / 0.5778 GB, free: 6.348 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004697/0.8726, allocations: 2.856 MB / 0.5806 GB, free: 3.398 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005505/0.8782, allocations: 1.006 MB / 0.5816 GB, free: 2.387 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02355/0.9017, allocations: 12.13 MB / 0.5934 GB, free: 6.191 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005488/0.9073, allocations: 4.221 MB / 0.5975 GB, free: 1.941 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003379/0.9107, allocations: 0.8326 MB / 0.5983 GB, free: 1.102 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009139/0.9116, allocations: 255.4 kB / 0.5986 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of SimCode: time 1.082e-06/0.9116, allocations: 4 kB / 0.5986 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of Templates: time 0.2404/1.152, allocations: 55.58 MB / 0.6529 GB, free: 128.5 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)