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.0008107/0.0008158, allocations: 89.67 kB / 16.65 MB, free: 6.59 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.001036/0.001036, allocations: 182.5 kB / 17.56 MB, free: 6.203 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.369/1.369, allocations: 205.4 MB / 223.7 MB, free: 13.08 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.0004496/0.0004497, allocations: 8 kB / 280.7 MB, free: 3.414 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09773/0.09819, allocations: 47.59 MB / 328.3 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02047/0.1187, allocations: 20.53 MB / 348.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0144/0.1331, allocations: 6.302 MB / 355.2 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004652/0.1378, allocations: 111.5 kB / 355.3 MB, free: 8.699 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005042/0.1429, allocations: 1.259 MB / 356.5 MB, free: 7.434 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008352/0.1513, allocations: 1.849 MB / 358.4 MB, free: 5.574 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004821/0.1561, allocations: 1.189 MB / 359.6 MB, free: 4.383 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01166/0.1678, allocations: 7.084 MB / 366.6 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008325/0.1762, allocations: 4.56 MB / 371.2 MB, free: 8.629 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005434/0.1817, allocations: 2.159 MB / 373.4 MB, free: 6.461 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00585/0.1876, allocations: 2.933 MB / 376.3 MB, free: 3.516 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001946/0.1896, allocations: 340 kB / 376.6 MB, free: 3.184 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003081/0.1927, allocations: 0.6363 MB / 377.3 MB, free: 2.547 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002081/0.1948, allocations: 1.44 MB / 378.7 MB, free: 1.102 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2031/0.3979, allocations: 2.921 MB / 381.6 MB, free: 18.78 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01822/0.4162, allocations: 10.09 MB / 391.7 MB, free: 17.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.4163, allocations: 0 / 391.7 MB, free: 17.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.687e-06/0.4163, allocations: 3.062 kB / 391.7 MB, free: 17.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0005394/0.4169, allocations: 0 / 391.7 MB, free: 17.75 MB / 318.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.02196/0.4388, allocations: 5.812 MB / 397.5 MB, free: 14.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/0.4389, allocations: 8.75 kB / 397.5 MB, free: 14.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007391/0.4463, allocations: 1.064 MB / 398.6 MB, free: 14.11 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009/0.4553, allocations: 3.452 MB / 402.1 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004733/0.4558, allocations: 416.5 kB / 402.5 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002235/0.4581, allocations: 0.5283 MB / 403 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01913/0.4772, allocations: 7.07 MB / 410.1 MB, free: 11.03 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001578/0.4774, allocations: 11.61 kB / 410.1 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005914/0.478, allocations: 220.4 kB / 410.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002583/0.4783, allocations: 263.3 kB / 410.5 MB, free: 10.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01253/0.4908, allocations: 5.965 MB / 416.5 MB, free: 7.738 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03898/0.5299, allocations: 22.54 MB / 439 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008497/0.5384, allocations: 8.302 MB / 447.3 MB, free: 8.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003554/0.542, allocations: 2.204 MB / 449.5 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01149/0.5535, allocations: 6.205 MB / 455.8 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.482e-05/0.5536, allocations: 56.56 kB / 455.8 MB, free: 148 kB / 350.1 MB Notification: Performance of pre-optimization done (n=220): time 4.699e-06/0.5536, allocations: 2.625 kB / 455.8 MB, free: 148 kB / 350.1 MB Notification: Performance of matching and sorting (n=240): time 0.02496/0.5786, allocations: 11.32 MB / 467.1 MB, free: 4.625 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.444e-05/0.5787, allocations: 77.41 kB / 467.2 MB, free: 4.535 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005631/0.5843, allocations: 3.155 MB / 470.4 MB, free: 1.383 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005287/0.5849, allocations: 65.7 kB / 470.4 MB, free: 1.312 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001828/0.5867, allocations: 2.503 MB / 472.9 MB, free: 14.79 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001084/0.5878, allocations: 0.8311 MB / 473.8 MB, free: 13.97 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003955/0.5882, allocations: 252.3 kB / 474 MB, free: 13.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.5884, allocations: 301.1 kB / 474.3 MB, free: 13.42 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002414/0.5908, allocations: 1.349 MB / 475.7 MB, free: 12.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00298/0.5938, allocations: 2.364 MB / 478 MB, free: 9.273 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005414/0.5992, allocations: 3.947 MB / 482 MB, free: 4.984 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.146e-05/0.5992, allocations: 12 kB / 482 MB, free: 4.973 MB / 382.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.008548/0.6078, allocations: 4.74 MB / 486.7 MB, free: 332 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.953e-05/0.6079, allocations: 20 kB / 486.7 MB, free: 312 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.935e-05/0.6079, allocations: 32 kB / 486.8 MB, free: 280 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001226/0.6092, allocations: 0.5181 MB / 487.3 MB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003028/0.6122, allocations: 0.7529 MB / 488 MB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009006/0.6212, allocations: 9.435 MB / 497.5 MB, free: 4.992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003442/0.6247, allocations: 195.8 kB / 497.7 MB, free: 4.801 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005116/0.6252, allocations: 144 kB / 497.8 MB, free: 4.66 MB / 398.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.004245/0.6295, allocations: 1.569 MB / 499.4 MB, free: 3.129 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001047/0.6305, allocations: 343.7 kB / 499.7 MB, free: 2.789 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007381/0.6379, allocations: 4.085 MB / 0.492 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.947e-05/0.638, allocations: 20 kB / 0.492 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/0.638, allocations: 8 kB / 0.492 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.949e-05/0.638, allocations: 23.83 kB / 0.492 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01661/0.6547, allocations: 9.004 MB / 0.5008 GB, free: 5.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-05/0.6547, allocations: 4 kB / 0.5008 GB, free: 5.496 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001793/0.6565, allocations: 419.6 kB / 0.5012 GB, free: 5.105 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001934/0.6585, allocations: 0.7356 MB / 0.502 GB, free: 4.352 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001853/0.6587, allocations: 67.97 kB / 0.502 GB, free: 4.285 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01428/0.6729, allocations: 15.32 MB / 0.517 GB, free: 3.973 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.817e-06/0.673, allocations: 10.98 kB / 0.517 GB, free: 3.965 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009977/0.683, allocations: 5.889 MB / 0.5227 GB, free: 13.94 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002216/0.6852, allocations: 0.7037 MB / 0.5234 GB, free: 13.21 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001084/0.6863, allocations: 56 kB / 0.5235 GB, free: 13.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002328/0.6887, allocations: 159.8 kB / 0.5236 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005573/0.6893, allocations: 184.5 kB / 0.5238 GB, free: 12.83 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001686/0.6894, allocations: 71.98 kB / 0.5239 GB, free: 12.76 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004248/0.6937, allocations: 2.123 MB / 0.526 GB, free: 10.64 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.583e-06/0.6937, allocations: 0 / 0.526 GB, free: 10.64 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005355/0.6991, allocations: 0.9923 MB / 0.5269 GB, free: 9.652 MB / 446.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.0007994/0.6999, allocations: 247.5 kB / 0.5272 GB, free: 9.422 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006791/0.7067, allocations: 4.165 MB / 0.5312 GB, free: 5.266 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.846e-06/0.7068, allocations: 0 / 0.5312 GB, free: 5.266 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004913/0.7117, allocations: 2.773 MB / 0.5339 GB, free: 2.445 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01057/0.7223, allocations: 0.8949 MB / 0.5348 GB, free: 1.547 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2195/0.9418, allocations: 12.53 MB / 0.547 GB, free: 154.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006874/0.9488, allocations: 3.412 MB / 0.5504 GB, free: 153.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003814/0.9526, allocations: 0.8047 MB / 0.5512 GB, free: 153.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001178/0.9538, allocations: 240.2 kB / 0.5514 GB, free: 153.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.803e-06/0.9538, allocations: 0 / 0.5514 GB, free: 153.3 MB / 446.1 MB Notification: Performance of Templates: time 0.08127/1.035, allocations: 48.76 MB / 0.599 GB, free: 113.6 MB / 446.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)