Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00167/0.00167, allocations: 114.3 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001977/0.001977, allocations: 206.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 59.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2182/0.2194, allocations: 50.54 MB / 410 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01055/0.23, allocations: 9.668 MB / 419.6 MB, free: 7.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005371/0.2354, allocations: 3.158 MB / 422.8 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001165/0.2366, allocations: 55.75 kB / 422.8 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001588/0.2382, allocations: 0.7065 MB / 423.5 MB, free: 3.855 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002252/0.2405, allocations: 0.8116 MB / 424.4 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008566/0.2414, allocations: 391.4 kB / 424.7 MB, free: 2.656 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002948/0.2443, allocations: 2.556 MB / 427.3 MB, free: 88 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002548/0.2469, allocations: 2.322 MB / 429.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001597/0.2485, allocations: 1.211 MB / 430.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001825/0.2503, allocations: 1.487 MB / 432.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000455/0.2508, allocations: 320 kB / 432.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007937/0.2516, allocations: 419.8 kB / 433 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008358/0.2525, allocations: 0.9038 MB / 433.9 MB, free: 9.363 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001364/0.2538, allocations: 1.419 MB / 435.4 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00412/0.258, allocations: 4.18 MB / 439.5 MB, free: 3.742 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.258, allocations: 0 / 439.5 MB, free: 3.742 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.258, allocations: 0 / 439.5 MB, free: 3.742 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.241e-05/0.2581, allocations: 4 kB / 439.5 MB, free: 3.738 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.005311/0.2634, allocations: 2.98 MB / 442.5 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.2634, allocations: 8.031 kB / 442.5 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008002/0.2642, allocations: 311.2 kB / 442.8 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002561/0.2668, allocations: 1.551 MB / 444.4 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001215/0.2669, allocations: 176.3 kB / 444.6 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003063/0.2673, allocations: 208 kB / 444.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00426/0.2715, allocations: 2.792 MB / 447.5 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.038e-05/0.2716, allocations: 11.94 kB / 447.6 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001908/0.2718, allocations: 83.98 kB / 447.6 MB, free: 11.42 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001055/0.2719, allocations: 112.2 kB / 447.8 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003871/0.2758, allocations: 2.343 MB / 450.1 MB, free: 8.945 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01204/0.2878, allocations: 8.525 MB / 458.6 MB, free: 180 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002344/0.2902, allocations: 1.694 MB / 460.3 MB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001664/0.2919, allocations: 0.9633 MB / 461.3 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002793/0.2922, allocations: 204 kB / 461.5 MB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.906e-05/0.2922, allocations: 47.5 kB / 461.5 MB, free: 13.1 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 3.156e-06/0.2922, allocations: 0 / 461.5 MB, free: 13.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01259/0.3048, allocations: 6.27 MB / 467.8 MB, free: 6.668 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.607e-05/0.3049, allocations: 64.41 kB / 467.9 MB, free: 6.594 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001996/0.3069, allocations: 1.438 MB / 469.3 MB, free: 5.145 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.009e-05/0.307, allocations: 49.7 kB / 469.3 MB, free: 5.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007094/0.3077, allocations: 1.075 MB / 470.4 MB, free: 4.004 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003111/0.308, allocations: 432.3 kB / 470.8 MB, free: 3.578 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000403/0.3084, allocations: 259.5 kB / 471.1 MB, free: 3.316 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.3086, allocations: 361.9 kB / 471.4 MB, free: 2.957 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001101/0.3097, allocations: 0.691 MB / 472.1 MB, free: 2.266 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001325/0.311, allocations: 1.066 MB / 473.2 MB, free: 1.043 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002616/0.3137, allocations: 1.868 MB / 475.1 MB, free: 15.01 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.605e-06/0.3137, allocations: 4 kB / 475.1 MB, free: 15 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004046/0.3177, allocations: 2.422 MB / 477.5 MB, free: 12.54 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.482e-05/0.3178, allocations: 12.03 kB / 477.5 MB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.973e-05/0.3178, allocations: 12 kB / 477.5 MB, free: 12.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001011/0.3188, allocations: 427 kB / 477.9 MB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/0.3201, allocations: 327.5 kB / 478.3 MB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007113/0.3272, allocations: 7.045 MB / 485.3 MB, free: 4.309 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001493/0.3287, allocations: 107.8 kB / 485.4 MB, free: 4.203 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001129/0.3289, allocations: 55.98 kB / 485.5 MB, free: 4.148 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * 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,11,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.001136/0.33, allocations: 0.6924 MB / 486.2 MB, free: 3.445 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002738/0.3303, allocations: 166.9 kB / 486.3 MB, free: 3.281 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003643/0.3339, allocations: 2.131 MB / 488.4 MB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.28e-05/0.334, allocations: 3.984 kB / 488.5 MB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.334, allocations: 8 kB / 488.5 MB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006482/0.3346, allocations: 383.9 kB / 488.8 MB, free: 0.6953 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002104/0.3349, allocations: 27.98 kB / 488.9 MB, free: 0.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008327/0.3357, allocations: 87.89 kB / 488.9 MB, free: 0.582 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002211/0.3359, allocations: 100.7 kB / 489 MB, free: 496 kB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004408/0.3403, allocations: 2.132 MB / 491.2 MB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00389/0.3442, allocations: 2.644 MB / 493.8 MB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001109/0.3454, allocations: 0.73 MB / 494.6 MB, free: 10.95 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001416/0.3468, allocations: 0.9888 MB / 495.5 MB, free: 9.957 MB / 414.1 MB Notification: Performance of Backend: time 4.61e-07/0.3468, allocations: 0 / 495.5 MB, free: 9.957 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003405/0.3502, allocations: 1.778 MB / 497.3 MB, free: 8.113 MB / 414.1 MB Notification: Performance of SimCode: time 0.006827/0.3571, allocations: 4.799 MB / 0.4904 GB, free: 3.262 MB / 414.1 MB Notification: Performance of Templates: time 0.05822/0.4153, allocations: 26.38 MB / 0.5161 GB, free: 9.105 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1)