Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 108.8 kB / 17.06 MB, free: 6.023 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.001077/0.001077, allocations: 191 kB / 18 MB, free: 5.109 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.322/1.322, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001175/0.001175, allocations: 51.92 kB / 327.9 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08431/0.08549, allocations: 46.61 MB / 374.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.1938/0.2793, allocations: 21.68 MB / 396.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01532/0.2947, allocations: 6.434 MB / 402.6 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005341/0.3001, allocations: 124.9 kB / 402.7 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00598/0.3061, allocations: 1.48 MB / 404.2 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01293/0.3191, allocations: 2.045 MB / 406.3 MB, free: 8.902 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00695/0.3261, allocations: 1.303 MB / 407.6 MB, free: 8.074 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0139/0.34, allocations: 6.533 MB / 414.1 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01127/0.3513, allocations: 5.506 MB / 419.6 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008125/0.3595, allocations: 2.977 MB / 422.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008518/0.3681, allocations: 3.557 MB / 426.1 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003171/0.3713, allocations: 0.8164 MB / 426.9 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005041/0.3764, allocations: 1.109 MB / 428.1 MB, free: 9.945 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003663/0.3801, allocations: 2.022 MB / 430.1 MB, free: 7.918 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008533/0.3886, allocations: 3.536 MB / 433.6 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01594/0.4046, allocations: 10.78 MB / 444.4 MB, free: 9.547 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.4047, allocations: 4 kB / 444.4 MB, free: 9.543 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.4047, allocations: 0 / 444.4 MB, free: 9.543 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002808/0.405, allocations: 0 / 444.4 MB, free: 9.543 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.02494/0.4299, allocations: 6.93 MB / 451.3 MB, free: 2.535 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.43, allocations: 8.031 kB / 451.3 MB, free: 2.527 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005973/0.436, allocations: 1.059 MB / 452.4 MB, free: 1.461 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008203/0.4442, allocations: 3.516 MB / 455.9 MB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006373/0.4449, allocations: 407.2 kB / 456.3 MB, free: 13.47 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002588/0.4475, allocations: 0.531 MB / 456.8 MB, free: 12.94 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01914/0.4666, allocations: 7.048 MB / 463.9 MB, free: 5.82 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002583/0.4669, allocations: 19.83 kB / 463.9 MB, free: 5.801 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001478/0.4684, allocations: 220 kB / 464.1 MB, free: 5.586 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002657/0.4687, allocations: 258.6 kB / 464.4 MB, free: 5.332 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01253/0.4813, allocations: 5.941 MB / 470.3 MB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04404/0.5253, allocations: 22.15 MB / 492.5 MB, free: 8.652 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008946/0.5343, allocations: 8.293 MB / 0.489 GB, free: 15.46 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003658/0.538, allocations: 2.159 MB / 0.4911 GB, free: 13.3 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0123/0.5504, allocations: 6.171 MB / 0.4972 GB, free: 6.996 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.876e-05/0.5504, allocations: 52.56 kB / 0.4972 GB, free: 6.934 MB / 430.1 MB Notification: Performance of pre-optimization done (n=220): time 4.138e-06/0.5505, allocations: 4 kB / 0.4972 GB, free: 6.93 MB / 430.1 MB Notification: Performance of matching and sorting (n=240): time 0.02441/0.5749, allocations: 11.15 MB / 0.5081 GB, free: 11.52 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.213e-05/0.575, allocations: 81.34 kB / 0.5082 GB, free: 11.43 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006394/0.5814, allocations: 3.148 MB / 0.5113 GB, free: 8.277 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000271/0.5816, allocations: 65.7 kB / 0.5113 GB, free: 8.207 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00187/0.5835, allocations: 2.498 MB / 0.5138 GB, free: 5.68 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008849/0.5844, allocations: 0.828 MB / 0.5146 GB, free: 4.84 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001024/0.5855, allocations: 0.5613 MB / 0.5151 GB, free: 4.27 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.741e-05/0.5856, allocations: 305.1 kB / 0.5154 GB, free: 3.969 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002402/0.588, allocations: 1.334 MB / 0.5167 GB, free: 2.633 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003053/0.591, allocations: 2.346 MB / 0.519 GB, free: 15.84 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005509/0.5966, allocations: 3.912 MB / 0.5228 GB, free: 11.45 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.88e-05/0.5966, allocations: 12 kB / 0.5228 GB, free: 11.44 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.008263/0.6049, allocations: 4.705 MB / 0.5274 GB, free: 6.625 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.856e-05/0.6049, allocations: 23.28 kB / 0.5275 GB, free: 6.605 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.008e-05/0.605, allocations: 32.66 kB / 0.5275 GB, free: 6.574 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001272/0.6063, allocations: 0.5295 MB / 0.528 GB, free: 6.023 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002798/0.6091, allocations: 0.741 MB / 0.5287 GB, free: 5.281 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008975/0.6181, allocations: 10.29 MB / 0.5388 GB, free: 10.29 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002844/0.6209, allocations: 179.8 kB / 0.5389 GB, free: 10.12 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003858/0.6213, allocations: 144 kB / 0.5391 GB, free: 9.977 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (380): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * 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): 5 systems {(3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003484/0.6248, allocations: 1.57 MB / 0.5406 GB, free: 8.395 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009006/0.6257, allocations: 339.8 kB / 0.5409 GB, free: 8.059 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007434/0.6332, allocations: 4.053 MB / 0.5449 GB, free: 3.906 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.12e-05/0.6332, allocations: 27.94 kB / 0.5449 GB, free: 3.879 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.424e-05/0.6333, allocations: 8 kB / 0.5449 GB, free: 3.871 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.408e-05/0.6333, allocations: 11.95 kB / 0.5449 GB, free: 3.859 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2073/0.8406, allocations: 8.953 MB / 0.5537 GB, free: 145.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.625e-05/0.8406, allocations: 5.766 kB / 0.5537 GB, free: 145.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001957/0.8426, allocations: 418 kB / 0.5541 GB, free: 145.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00211/0.8447, allocations: 0.73 MB / 0.5548 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002854/0.845, allocations: 66.97 kB / 0.5549 GB, free: 144.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01356/0.8586, allocations: 16.73 MB / 0.5712 GB, free: 130.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.101e-06/0.8586, allocations: 8.938 kB / 0.5712 GB, free: 130.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01052/0.8692, allocations: 5.845 MB / 0.5769 GB, free: 128.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002312/0.8715, allocations: 0.6961 MB / 0.5776 GB, free: 128.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006167/0.8721, allocations: 58 kB / 0.5777 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001721/0.8739, allocations: 134.4 kB / 0.5778 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000544/0.8744, allocations: 186.2 kB / 0.578 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001736/0.8746, allocations: 78.89 kB / 0.578 GB, free: 127.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003796/0.8784, allocations: 2.124 MB / 0.5801 GB, free: 127.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.8784, allocations: 0 / 0.5801 GB, free: 127.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003939/0.8824, allocations: 0.9955 MB / 0.5811 GB, free: 127.1 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.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,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * 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 (201): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,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.0005966/0.883, allocations: 251.7 kB / 0.5813 GB, free: 126.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006114/0.8891, allocations: 4.142 MB / 0.5854 GB, free: 125 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.065e-06/0.8891, allocations: 3.969 kB / 0.5854 GB, free: 125 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003725/0.8929, allocations: 2.745 MB / 0.5881 GB, free: 123.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00408/0.897, allocations: 0.9554 MB / 0.589 GB, free: 123.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01413/0.9111, allocations: 9.924 MB / 0.5987 GB, free: 117.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002508/0.9136, allocations: 3.415 MB / 0.602 GB, free: 114.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002434/0.9161, allocations: 0.8049 MB / 0.6028 GB, free: 113.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006897/0.9168, allocations: 240.9 kB / 0.603 GB, free: 113.6 MB / 478.1 MB Notification: Performance of SimCode: time 7.72e-07/0.9168, allocations: 4 kB / 0.603 GB, free: 113.6 MB / 478.1 MB Notification: Performance of Templates: time 0.07611/0.9929, allocations: 49.12 MB / 0.651 GB, free: 65.01 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1)