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.006765/0.006765, allocations: 97.33 kB / 15.73 MB, free: 5.527 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.001342/0.001342, allocations: 187 kB / 16.67 MB, free: 5.465 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.495/1.495, allocations: 205.1 MB / 222.6 MB, free: 4.379 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.001988/0.001988, allocations: 50.92 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09992/0.1019, allocations: 46.64 MB / 373.2 MB, free: 1.277 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.02351/0.1255, allocations: 23.71 MB / 396.9 MB, free: 9.461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01331/0.1388, allocations: 6.546 MB / 403.5 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004103/0.1429, allocations: 143.4 kB / 403.6 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005224/0.1482, allocations: 1.626 MB / 405.2 MB, free: 1.117 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008599/0.1569, allocations: 2.194 MB / 407.4 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004329/0.1612, allocations: 1.446 MB / 408.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01242/0.1736, allocations: 8.083 MB / 416.9 MB, free: 5.348 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009444/0.1831, allocations: 7.153 MB / 424.1 MB, free: 14.1 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006119/0.1893, allocations: 3.832 MB / 427.9 MB, free: 10.25 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006768/0.1961, allocations: 4.425 MB / 432.4 MB, free: 5.812 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002391/0.1985, allocations: 1.094 MB / 433.4 MB, free: 4.719 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003303/0.2018, allocations: 1.304 MB / 434.8 MB, free: 3.414 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002478/0.2043, allocations: 2.435 MB / 437.2 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007762/0.2121, allocations: 4.516 MB / 441.7 MB, free: 12.44 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2696/0.4817, allocations: 14.22 MB / 455.9 MB, free: 28.38 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.288e-06/0.4817, allocations: 0.5938 kB / 455.9 MB, free: 28.38 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.4817, allocations: 3 kB / 455.9 MB, free: 28.38 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004941/0.4822, allocations: 0.5938 kB / 455.9 MB, free: 28.38 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.02758/0.5098, allocations: 9.02 MB / 464.9 MB, free: 25.4 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.5099, allocations: 16.92 kB / 465 MB, free: 25.39 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009376/0.5193, allocations: 1.699 MB / 466.7 MB, free: 24.97 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01016/0.5295, allocations: 4.578 MB / 471.2 MB, free: 24.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004097/0.5299, allocations: 0.5124 MB / 471.7 MB, free: 24.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001641/0.5315, allocations: 0.6814 MB / 472.4 MB, free: 24.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01527/0.5468, allocations: 9.444 MB / 481.9 MB, free: 21.91 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001472/0.547, allocations: 10.58 kB / 481.9 MB, free: 21.91 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006212/0.5476, allocations: 287.2 kB / 482.2 MB, free: 21.69 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002328/0.5479, allocations: 332.9 kB / 482.5 MB, free: 21.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01292/0.5608, allocations: 8.055 MB / 490.5 MB, free: 17.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04207/0.6029, allocations: 28.49 MB / 0.5069 GB, free: 6.125 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01593/0.6189, allocations: 16.58 MB / 0.5231 GB, free: 3.68 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004771/0.6237, allocations: 2.918 MB / 0.5259 GB, free: 0.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01448/0.6382, allocations: 7.7 MB / 0.5334 GB, free: 9.023 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.985e-05/0.6383, allocations: 68.61 kB / 0.5335 GB, free: 8.945 MB / 430.1 MB Notification: Performance of pre-optimization done (n=259): time 6.883e-06/0.6383, allocations: 0 / 0.5335 GB, free: 8.945 MB / 430.1 MB Notification: Performance of matching and sorting (n=265): time 0.0227/0.661, allocations: 11.08 MB / 0.5443 GB, free: 13.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.422e-05/0.6611, allocations: 81.5 kB / 0.5444 GB, free: 13.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00482/0.6659, allocations: 3.373 MB / 0.5477 GB, free: 10.14 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003046/0.6662, allocations: 73.7 kB / 0.5478 GB, free: 10.06 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00234/0.6686, allocations: 3.127 MB / 0.5508 GB, free: 6.918 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008992/0.6695, allocations: 0.953 MB / 0.5517 GB, free: 5.977 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009141/0.6704, allocations: 0.5976 MB / 0.5523 GB, free: 5.371 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.6705, allocations: 313.1 kB / 0.5526 GB, free: 5.062 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002238/0.6728, allocations: 1.396 MB / 0.554 GB, free: 3.668 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002922/0.6757, allocations: 2.435 MB / 0.5564 GB, free: 0.793 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005423/0.6811, allocations: 4.073 MB / 0.5603 GB, free: 12.37 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.761e-05/0.6812, allocations: 8 kB / 0.5604 GB, free: 12.36 MB / 462.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.007396/0.6886, allocations: 4.718 MB / 0.565 GB, free: 7.766 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.451e-05/0.6886, allocations: 16 kB / 0.565 GB, free: 7.75 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.182e-05/0.6887, allocations: 35.94 kB / 0.565 GB, free: 7.715 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000956/0.6896, allocations: 400.5 kB / 0.5654 GB, free: 7.309 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002876/0.6925, allocations: 0.7944 MB / 0.5662 GB, free: 6.562 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007026/0.6996, allocations: 7.971 MB / 0.574 GB, free: 14.09 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003283/0.7029, allocations: 156 kB / 0.5741 GB, free: 13.93 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003171/0.7032, allocations: 152 kB / 0.5742 GB, free: 13.79 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.004101/0.7073, allocations: 2.076 MB / 0.5763 GB, free: 11.75 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008167/0.7081, allocations: 389.5 kB / 0.5766 GB, free: 11.37 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007334/0.7155, allocations: 4.205 MB / 0.5808 GB, free: 7.086 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.433e-05/0.7155, allocations: 28 kB / 0.5808 GB, free: 7.059 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.803e-05/0.7155, allocations: 12 kB / 0.5808 GB, free: 7.047 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.509e-05/0.7156, allocations: 15.89 kB / 0.5808 GB, free: 7.031 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01639/0.732, allocations: 9.881 MB / 0.5905 GB, free: 13.07 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/0.732, allocations: 4 kB / 0.5905 GB, free: 13.06 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001718/0.7337, allocations: 409.3 kB / 0.5908 GB, free: 12.68 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002107/0.7358, allocations: 0.8479 MB / 0.5917 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001765/0.736, allocations: 79.95 kB / 0.5918 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01781/0.7539, allocations: 17.52 MB / 0.6089 GB, free: 9.359 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.7539, allocations: 4.125 kB / 0.6089 GB, free: 9.355 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009764/0.7637, allocations: 6.045 MB / 0.6148 GB, free: 3.152 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002065/0.7657, allocations: 0.7665 MB / 0.6155 GB, free: 2.367 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004643/0.7662, allocations: 60 kB / 0.6156 GB, free: 2.309 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001684/0.7679, allocations: 131.9 kB / 0.6157 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004594/0.7684, allocations: 209.5 kB / 0.6159 GB, free: 1.977 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001817/0.7686, allocations: 75.98 kB / 0.616 GB, free: 1.902 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003284/0.7719, allocations: 2.294 MB / 0.6182 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.3e-07/0.7719, allocations: 1.875 kB / 0.6182 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00396/0.7758, allocations: 1.141 MB / 0.6193 GB, free: 14.48 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.0005001/0.7763, allocations: 214.5 kB / 0.6195 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006674/0.783, allocations: 4.131 MB / 0.6236 GB, free: 10.15 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.7831, allocations: 4.125 kB / 0.6236 GB, free: 10.15 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004236/0.7873, allocations: 2.86 MB / 0.6264 GB, free: 7.234 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004769/0.7921, allocations: 1.012 MB / 0.6274 GB, free: 6.219 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2411/1.033, allocations: 12.17 MB / 0.6392 GB, free: 188.2 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004379/1.038, allocations: 4.227 MB / 0.6434 GB, free: 187.4 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003022/1.041, allocations: 0.8367 MB / 0.6442 GB, free: 187.3 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007057/1.041, allocations: 252.8 kB / 0.6444 GB, free: 187.3 MB / 0.5137 GB Notification: Performance of SimCode: time 1.843e-06/1.041, allocations: 3.188 kB / 0.6444 GB, free: 187.3 MB / 0.5137 GB Notification: Performance of Templates: time 0.08224/1.124, allocations: 53.35 MB / 0.6965 GB, free: 147 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)