Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) 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(PowerSystems.Examples.AC3ph.Drives.SM_ctrl,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|loadInertia.flange_a.tau|loadInertia.w|sm_ctrl.motor.tau_el|sm_ctrl.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl") translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrl,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|loadInertia.flange_a.tau|loadInertia.w|sm_ctrl.motor.tau_el|sm_ctrl.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 113 kB / 17.75 MB, free: 5.301 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.001252/0.001252, allocations: 182.6 kB / 18.68 MB, free: 4.379 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.299/1.299, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1759/0.1759, allocations: 38.04 MB / 330.6 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 59.91 kB / 458.8 MB, free: 6.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2816/0.2828, allocations: 58.07 MB / 0.5048 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrl): time 0.007447/0.2903, allocations: 7.489 MB / 0.5121 GB, free: 2.551 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004513/0.2949, allocations: 3.156 MB / 0.5152 GB, free: 320 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006971/0.2956, allocations: 35 kB / 0.5152 GB, free: 308 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001132/0.2967, allocations: 398.3 kB / 0.5156 GB, free: 68 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002009/0.2987, allocations: 0.8043 MB / 0.5164 GB, free: 15.64 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001149/0.2999, allocations: 461.8 kB / 0.5168 GB, free: 15.38 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00252/0.3025, allocations: 1.922 MB / 0.5187 GB, free: 14.48 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002484/0.305, allocations: 1.669 MB / 0.5203 GB, free: 13.69 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00128/0.3062, allocations: 0.7836 MB / 0.5211 GB, free: 13.33 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00119/0.3074, allocations: 0.8131 MB / 0.5219 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000248/0.3077, allocations: 165.1 kB / 0.522 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001291/0.309, allocations: 0.7162 MB / 0.5227 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005896/0.3096, allocations: 0.5623 MB / 0.5233 GB, free: 12.56 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000835/0.3105, allocations: 0.7824 MB / 0.5241 GB, free: 12.05 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00302/0.3135, allocations: 2.438 MB / 0.5264 GB, free: 11.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3135, allocations: 0 / 0.5264 GB, free: 11.18 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3135, allocations: 0 / 0.5264 GB, free: 11.18 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.628e-05/0.3136, allocations: 0 / 0.5264 GB, free: 11.18 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 302 * Number of variables: 302 Notification: Performance of Generate backend data structure: time 0.00406/0.3176, allocations: 1.97 MB / 0.5284 GB, free: 9.922 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.3177, allocations: 9.344 kB / 0.5284 GB, free: 9.922 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007406/0.3184, allocations: 198.5 kB / 0.5286 GB, free: 9.828 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001665/0.3201, allocations: 0.9918 MB / 0.5295 GB, free: 9.066 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001898/0.3203, allocations: 194.1 kB / 0.5297 GB, free: 8.918 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002581/0.3206, allocations: 121.9 kB / 0.5298 GB, free: 8.875 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003202/0.3238, allocations: 1.817 MB / 0.5316 GB, free: 7.695 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.188e-05/0.3238, allocations: 11.45 kB / 0.5316 GB, free: 7.688 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001303/0.324, allocations: 46.78 kB / 0.5317 GB, free: 7.652 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001191/0.3241, allocations: 78.62 kB / 0.5317 GB, free: 7.633 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002816/0.3269, allocations: 1.417 MB / 0.5331 GB, free: 6.918 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008394/0.3353, allocations: 6.348 MB / 0.5393 GB, free: 1.734 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002856/0.3382, allocations: 1.189 MB / 0.5405 GB, free: 1.035 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001319/0.3396, allocations: 0.5903 MB / 0.5411 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.813e-05/0.3396, allocations: 12 kB / 0.5411 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001499/0.3412, allocations: 0.7675 MB / 0.5418 GB, free: 256 kB / 398.1 MB Notification: Performance of pre-optimization done (n=88): time 3.055e-06/0.3412, allocations: 0 / 0.5418 GB, free: 256 kB / 398.1 MB Notification: Performance of matching and sorting (n=92): time 0.00784/0.349, allocations: 3.513 MB / 0.5452 GB, free: 14.22 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.633e-05/0.3491, allocations: 156.7 kB / 0.5454 GB, free: 14.05 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001073/0.3502, allocations: 0.8351 MB / 0.5462 GB, free: 13.51 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.266e-05/0.3503, allocations: 65.66 kB / 0.5463 GB, free: 13.44 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004298/0.3507, allocations: 0.5706 MB / 0.5468 GB, free: 12.86 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002692/0.351, allocations: 325.3 kB / 0.5471 GB, free: 12.54 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003405/0.3514, allocations: 222.9 kB / 0.5474 GB, free: 12.32 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001865/0.3516, allocations: 410.7 kB / 0.5477 GB, free: 11.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008489/0.3524, allocations: 0.5369 MB / 0.5483 GB, free: 11.37 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001027/0.3535, allocations: 0.8694 MB / 0.5491 GB, free: 10.35 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005233/0.3587, allocations: 2.695 MB / 0.5518 GB, free: 7.484 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.676e-06/0.3587, allocations: 4 kB / 0.5518 GB, free: 7.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003891/0.3626, allocations: 2.08 MB / 0.5538 GB, free: 5.383 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.764e-05/0.3627, allocations: 73.61 kB / 0.5539 GB, free: 5.305 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.873e-05/0.3628, allocations: 12 kB / 0.5539 GB, free: 5.293 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001924/0.3647, allocations: 0.7871 MB / 0.5546 GB, free: 4.496 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006368/0.3654, allocations: 179.7 kB / 0.5548 GB, free: 4.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002283/0.3676, allocations: 1.866 MB / 0.5566 GB, free: 2.422 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009108/0.3686, allocations: 79.95 kB / 0.5567 GB, free: 2.344 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001471/0.3687, allocations: 87.94 kB / 0.5568 GB, free: 2.258 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.sm_ctrl.rotor.w = 0.0. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001444/0.3702, allocations: 0.8617 MB / 0.5576 GB, free: 1.395 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001021/0.3712, allocations: 0.85 MB / 0.5585 GB, free: 412 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004993/0.3762, allocations: 2.663 MB / 0.5611 GB, free: 13.56 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.796e-06/0.3762, allocations: 4 kB / 0.5611 GB, free: 13.56 MB / 430.1 MB Notification: Performance of matching and sorting (n=154) (initialization_lambda0): time 0.003654/0.3799, allocations: 2.006 MB / 0.563 GB, free: 11.54 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.798e-05/0.38, allocations: 65.67 kB / 0.5631 GB, free: 11.46 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.739e-05/0.38, allocations: 8 kB / 0.5631 GB, free: 11.46 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001844/0.3819, allocations: 0.7714 MB / 0.5639 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006219/0.3825, allocations: 179.7 kB / 0.564 GB, free: 10.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002102/0.3846, allocations: 1.836 MB / 0.5658 GB, free: 8.633 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00094/0.3856, allocations: 79.83 kB / 0.5659 GB, free: 8.555 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000141/0.3857, allocations: 83.94 kB / 0.566 GB, free: 8.473 MB / 430.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization_lambda0 system: $DER.sm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 29 (system.initime,$PRE.sm_ctrl.inverter.modulator.gates[1],$PRE.sm_ctrl.inverter.modulator.gates[2],$PRE.sm_ctrl.inverter.modulator.gates[3],$PRE.sm_ctrl.inverter.modulator.gates[4],$PRE.sm_ctrl.inverter.modulator.gates[5],$PRE.sm_ctrl.inverter.modulator.gates[6],$PRE.sm_ctrl.inverter.modulator.t0[3],$PRE.sm_ctrl.inverter.modulator.t0[2],$PRE.sm_ctrl.inverter.modulator.t0[1],$PRE.sm_ctrl.inverter.modulator.sigdel_t[3],$PRE.sm_ctrl.inverter.modulator.sigdel_t[2],$PRE.sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.t0[3],sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[2],sm_ctrl.inverter.modulator.gates[1],$whenCondition1,$whenCondition2,$whenCondition3,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (104): * Single equations (assignments): 102 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,30)} Notification: Performance of prepare postOptimizeDAE: time 0.0004041/0.3861, allocations: 292.5 kB / 0.5663 GB, free: 8.188 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002863/0.3864, allocations: 103.3 kB / 0.5663 GB, free: 8.086 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003042/0.3895, allocations: 1.286 MB / 0.5676 GB, free: 6.789 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.3895, allocations: 3.984 kB / 0.5676 GB, free: 6.785 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.3895, allocations: 0 / 0.5676 GB, free: 6.785 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005551/0.3901, allocations: 300.3 kB / 0.5679 GB, free: 6.473 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003514/0.3904, allocations: 95.94 kB / 0.568 GB, free: 6.379 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008928/0.3913, allocations: 95.81 kB / 0.5681 GB, free: 6.285 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001683/0.3915, allocations: 60.91 kB / 0.5681 GB, free: 6.227 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003604/0.3951, allocations: 1.567 MB / 0.5697 GB, free: 4.648 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004243/0.3994, allocations: 2.269 MB / 0.5719 GB, free: 2.359 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001214/0.4006, allocations: 0.5894 MB / 0.5725 GB, free: 1.77 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0008786/0.4015, allocations: 0.5654 MB / 0.573 GB, free: 1.207 MB / 430.1 MB Notification: Performance of Backend: time 3.01e-07/0.4015, allocations: 0 / 0.573 GB, free: 1.207 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004601/0.4061, allocations: 2.279 MB / 0.5752 GB, free: 14.9 MB / 446.1 MB Notification: Performance of SimCode: time 0.004286/0.4104, allocations: 2.893 MB / 0.5781 GB, free: 11.96 MB / 446.1 MB Notification: Performance of Templates: time 0.0368/0.4472, allocations: 25.14 MB / 0.6026 GB, free: 2.969 MB / 462.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.SM_ctrl.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches