Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 116 kB / 17.75 MB, free: 5.223 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.001099/0.001099, allocations: 181.4 kB / 18.67 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001003/0.001003, allocations: 47.92 kB / 352 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2196/0.2206, allocations: 49.44 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01069/0.2313, allocations: 10.31 MB / 411.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005777/0.2371, allocations: 3.428 MB / 415.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009787/0.2381, allocations: 55.75 kB / 415.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001666/0.2398, allocations: 0.823 MB / 416 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002014/0.2419, allocations: 0.8776 MB / 416.9 MB, free: 9.312 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007982/0.2427, allocations: 415.4 kB / 417.3 MB, free: 8.906 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002619/0.2453, allocations: 2.754 MB / 420.1 MB, free: 6.141 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002522/0.2478, allocations: 2.402 MB / 422.5 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001491/0.2493, allocations: 1.261 MB / 423.7 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001864/0.2512, allocations: 1.584 MB / 425.3 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004302/0.2517, allocations: 336 kB / 425.7 MB, free: 496 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007615/0.2524, allocations: 435.8 kB / 426.1 MB, free: 60 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008321/0.2533, allocations: 0.9427 MB / 427 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001327/0.2546, allocations: 1.501 MB / 428.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003796/0.2584, allocations: 4.377 MB / 432.9 MB, free: 9.215 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.2584, allocations: 0 / 432.9 MB, free: 9.215 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.2584, allocations: 3.938 kB / 432.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.019e-05/0.2585, allocations: 0 / 432.9 MB, free: 9.211 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: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.005546/0.264, allocations: 3.061 MB / 436 MB, free: 6.086 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.2641, allocations: 8.031 kB / 436 MB, free: 6.078 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007575/0.2648, allocations: 309.4 kB / 436.3 MB, free: 5.773 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002791/0.2677, allocations: 1.625 MB / 437.9 MB, free: 4.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001308/0.2678, allocations: 172.4 kB / 438.1 MB, free: 3.918 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003268/0.2681, allocations: 216 kB / 438.3 MB, free: 3.707 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00495/0.2731, allocations: 2.917 MB / 441.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.364e-05/0.2732, allocations: 3.906 kB / 441.2 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002189/0.2734, allocations: 95.98 kB / 441.3 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001176/0.2735, allocations: 120.3 kB / 441.4 MB, free: 496 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004124/0.2776, allocations: 2.43 MB / 443.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01332/0.291, allocations: 9.016 MB / 452.9 MB, free: 4.742 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002321/0.2933, allocations: 1.701 MB / 454.6 MB, free: 2.918 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001792/0.2951, allocations: 0.9884 MB / 455.5 MB, free: 1.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002762/0.2954, allocations: 203.2 kB / 455.7 MB, free: 1.695 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.322e-05/0.2955, allocations: 51.5 kB / 455.8 MB, free: 1.637 MB / 366.1 MB Notification: Performance of pre-optimization done (n=105): time 3.165e-06/0.2955, allocations: 0 / 455.8 MB, free: 1.637 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.0147/0.3102, allocations: 6.558 MB / 462.4 MB, free: 10.92 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.783e-05/0.3102, allocations: 64.41 kB / 462.4 MB, free: 10.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002486/0.3127, allocations: 1.573 MB / 464 MB, free: 9.262 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.47e-05/0.3128, allocations: 49.64 kB / 464 MB, free: 9.207 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008048/0.3137, allocations: 1.104 MB / 465.1 MB, free: 8.086 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003505/0.314, allocations: 429.8 kB / 465.6 MB, free: 7.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004506/0.3145, allocations: 267.4 kB / 465.8 MB, free: 7.391 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.472e-05/0.3146, allocations: 309.1 kB / 466.1 MB, free: 7.086 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001245/0.3158, allocations: 0.7066 MB / 466.8 MB, free: 6.379 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001617/0.3174, allocations: 1.142 MB / 468 MB, free: 5.059 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002984/0.3204, allocations: 1.967 MB / 469.9 MB, free: 2.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.02e-05/0.3205, allocations: 4 kB / 469.9 MB, free: 2.906 MB / 382.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004332/0.3248, allocations: 2.522 MB / 472.5 MB, free: 352 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.3248, allocations: 19.88 kB / 472.5 MB, free: 332 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.157e-05/0.3249, allocations: 12 kB / 472.5 MB, free: 320 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001019/0.3259, allocations: 431.1 kB / 472.9 MB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/0.3272, allocations: 351.5 kB / 473.3 MB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007185/0.3344, allocations: 7.119 MB / 480.4 MB, free: 8.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001332/0.3358, allocations: 103.8 kB / 480.5 MB, free: 7.902 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001285/0.3359, allocations: 64.16 kB / 480.5 MB, free: 7.84 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001243/0.3372, allocations: 0.7237 MB / 481.3 MB, free: 7.105 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003881/0.3376, allocations: 169.9 kB / 481.4 MB, free: 6.938 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004033/0.3416, allocations: 2.198 MB / 483.6 MB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.476e-05/0.3416, allocations: 7.969 kB / 483.6 MB, free: 4.684 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/0.3416, allocations: 0 / 483.6 MB, free: 4.684 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008242/0.3425, allocations: 410.9 kB / 484 MB, free: 4.262 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002964/0.3428, allocations: 24 kB / 484.1 MB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009697/0.3438, allocations: 87.88 kB / 484.2 MB, free: 4.152 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002108/0.344, allocations: 97.16 kB / 484.2 MB, free: 4.055 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004695/0.3487, allocations: 2.198 MB / 486.4 MB, free: 1.836 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004102/0.3528, allocations: 2.72 MB / 489.2 MB, free: 15.1 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00115/0.354, allocations: 0.7558 MB / 489.9 MB, free: 14.34 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001588/0.3556, allocations: 1.066 MB / 491 MB, free: 13.28 MB / 414.1 MB Notification: Performance of Backend: time 3.51e-07/0.3556, allocations: 0 / 491 MB, free: 13.28 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003535/0.3591, allocations: 1.823 MB / 492.8 MB, free: 11.39 MB / 414.1 MB Notification: Performance of SimCode: time 0.007755/0.3669, allocations: 4.986 MB / 497.8 MB, free: 6.348 MB / 414.1 MB Notification: Performance of Templates: time 0.0472/0.4141, allocations: 28.42 MB / 0.5139 GB, free: 10.19 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1)