Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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.SMPM_Inverter_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 108 kB / 15.61 MB, free: 148 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.001206/0.001206, allocations: 196.2 kB / 16.53 MB, free: 6.656 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.346/1.346, allocations: 205.1 MB / 222.4 MB, free: 4.578 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.001264/0.001264, allocations: 59.92 kB / 278.7 MB, free: 12.33 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.248/0.2493, allocations: 46.63 MB / 325.3 MB, free: 1.855 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase): time 0.02856/0.2779, allocations: 25.33 MB / 350.7 MB, free: 10.49 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01769/0.2957, allocations: 7.067 MB / 357.7 MB, free: 3.398 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006389/0.3021, allocations: 151.4 kB / 357.9 MB, free: 3.25 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00603/0.3082, allocations: 1.708 MB / 359.6 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009565/0.3178, allocations: 2.278 MB / 361.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004856/0.3227, allocations: 1.509 MB / 363.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01228/0.335, allocations: 8.472 MB / 371.8 MB, free: 5.211 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0131/0.3481, allocations: 7.286 MB / 379.1 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007479/0.3557, allocations: 3.972 MB / 383.1 MB, free: 9.855 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007787/0.3635, allocations: 4.596 MB / 387.7 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003997/0.3675, allocations: 1.133 MB / 388.8 MB, free: 4.109 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005135/0.3727, allocations: 1.355 MB / 390.2 MB, free: 2.754 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00396/0.3767, allocations: 2.524 MB / 392.7 MB, free: 228 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009328/0.386, allocations: 4.723 MB / 397.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01862/0.4047, allocations: 14.59 MB / 412 MB, free: 12.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.778e-06/0.4048, allocations: 0 / 412 MB, free: 12.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4048, allocations: 3.938 kB / 412 MB, free: 12.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0005365/0.4053, allocations: 0 / 412 MB, free: 12.84 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.0311/0.4364, allocations: 9.224 MB / 421.2 MB, free: 3.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/0.4365, allocations: 11.89 kB / 421.3 MB, free: 3.508 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01114/0.4477, allocations: 1.744 MB / 423 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01055/0.4582, allocations: 4.692 MB / 427.7 MB, free: 12.99 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007063/0.459, allocations: 0.5383 MB / 428.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002673/0.4617, allocations: 0.7107 MB / 428.9 MB, free: 11.74 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02714/0.4889, allocations: 9.777 MB / 438.7 MB, free: 1.883 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004435/0.4894, allocations: 8 kB / 438.7 MB, free: 1.875 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002497/0.4919, allocations: 299.9 kB / 439 MB, free: 1.582 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004113/0.4923, allocations: 354.6 kB / 439.4 MB, free: 1.234 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01973/0.5121, allocations: 8.291 MB / 447.7 MB, free: 8.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.405/0.9171, allocations: 30.47 MB / 478.1 MB, free: 87.22 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01449/0.9317, allocations: 16.08 MB / 494.2 MB, free: 72.13 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004754/0.9365, allocations: 3.048 MB / 497.3 MB, free: 70.61 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01465/0.9512, allocations: 8.08 MB / 0.4935 GB, free: 64.21 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.399e-05/0.9512, allocations: 68.77 kB / 0.4936 GB, free: 64.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=281): time 5.64e-06/0.9512, allocations: 0 / 0.4936 GB, free: 64.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=289): time 0.02135/0.9726, allocations: 11.59 MB / 0.5049 GB, free: 52.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.011e-05/0.9727, allocations: 81.69 kB / 0.505 GB, free: 52.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006189/0.9789, allocations: 3.645 MB / 0.5085 GB, free: 48.53 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000162/0.979, allocations: 73.7 kB / 0.5086 GB, free: 48.45 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001539/0.9806, allocations: 3.183 MB / 0.5117 GB, free: 45.24 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005505/0.9812, allocations: 0.9924 MB / 0.5127 GB, free: 44.26 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009205/0.9821, allocations: 0.6413 MB / 0.5133 GB, free: 43.61 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.072e-05/0.9821, allocations: 309.1 kB / 0.5136 GB, free: 43.3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002083/0.9842, allocations: 1.475 MB / 0.515 GB, free: 41.83 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002564/0.9868, allocations: 2.628 MB / 0.5176 GB, free: 38.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005067/0.9919, allocations: 4.392 MB / 0.5219 GB, free: 33.78 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.83e-05/0.9919, allocations: 8 kB / 0.5219 GB, free: 33.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.007367/0.9993, allocations: 5.025 MB / 0.5268 GB, free: 28.67 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.588e-05/0.9994, allocations: 24.03 kB / 0.5268 GB, free: 28.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-05/0.9994, allocations: 36 kB / 0.5269 GB, free: 28.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009037/1, allocations: 401.5 kB / 0.5272 GB, free: 28.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002859/1.003, allocations: 0.8619 MB / 0.5281 GB, free: 27.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005331/1.009, allocations: 7.977 MB / 0.5359 GB, free: 18.81 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002764/1.011, allocations: 171.9 kB / 0.536 GB, free: 18.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002633/1.012, allocations: 167.9 kB / 0.5362 GB, free: 18.48 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 162 * 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 (451): * Single equations (assignments): 445 * 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,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003513/1.015, allocations: 2.128 MB / 0.5383 GB, free: 16.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009552/1.016, allocations: 399.1 kB / 0.5387 GB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00708/1.023, allocations: 4.462 MB / 0.543 GB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.557e-05/1.023, allocations: 28 kB / 0.543 GB, free: 11.35 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.719e-05/1.023, allocations: 20.12 kB / 0.5431 GB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.361e-05/1.023, allocations: 11.95 kB / 0.5431 GB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01742/1.041, allocations: 10.48 MB / 0.5533 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.495e-05/1.041, allocations: 7.938 kB / 0.5533 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00176/1.043, allocations: 443.9 kB / 0.5537 GB, free: 252 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002485/1.045, allocations: 0.88 MB / 0.5546 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003032/1.045, allocations: 79.97 kB / 0.5547 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01882/1.064, allocations: 17.65 MB / 0.5719 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.543e-06/1.064, allocations: 7.938 kB / 0.5719 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01076/1.075, allocations: 6.417 MB / 0.5782 GB, free: 6.023 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002109/1.077, allocations: 0.7969 MB / 0.579 GB, free: 5.203 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001052/1.078, allocations: 71.92 kB / 0.579 GB, free: 5.133 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002472/1.081, allocations: 139.9 kB / 0.5792 GB, free: 4.996 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005412/1.081, allocations: 213.8 kB / 0.5794 GB, free: 4.785 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002393/1.081, allocations: 87.98 kB / 0.5794 GB, free: 4.699 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.005139/1.087, allocations: 2.473 MB / 0.5819 GB, free: 2.246 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.087, allocations: 0 / 0.5819 GB, free: 2.246 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005123/1.092, allocations: 1.214 MB / 0.583 GB, free: 1.035 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.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 (220): * Single equations (assignments): 213 * 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,13,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005757/1.092, allocations: 213 kB / 0.5832 GB, free: 0.8164 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0144/1.107, allocations: 6.16 MB / 0.5893 GB, free: 10.57 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/1.107, allocations: 0 / 0.5893 GB, free: 10.57 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004617/1.111, allocations: 2.987 MB / 0.5922 GB, free: 7.488 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006473/1.118, allocations: 1.113 MB / 0.5933 GB, free: 6.375 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02782/1.146, allocations: 12.64 MB / 0.6056 GB, free: 9.645 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007035/1.153, allocations: 4.347 MB / 0.6099 GB, free: 5.258 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005204/1.158, allocations: 0.8903 MB / 0.6107 GB, free: 4.363 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001281/1.159, allocations: 283.4 kB / 0.611 GB, free: 4.086 MB / 446.1 MB Notification: Performance of SimCode: time 1.152e-06/1.159, allocations: 0 / 0.611 GB, free: 4.086 MB / 446.1 MB Notification: Performance of Templates: time 0.2847/1.444, allocations: 60.07 MB / 0.6697 GB, free: 110.4 MB / 446.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe 2>&1)