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.001098/0.001098, allocations: 111 kB / 17.75 MB, free: 5.336 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.001231/0.001231, allocations: 190.4 kB / 18.67 MB, free: 4.422 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.297/1.297, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1771/0.1771, allocations: 38.04 MB / 330.6 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 55.91 kB / 458.8 MB, free: 6.848 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.2808, allocations: 58.06 MB / 0.5048 GB, free: 7.656 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrl): time 0.007649/0.2885, allocations: 7.486 MB / 0.5121 GB, free: 2.449 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004705/0.2933, allocations: 3.159 MB / 0.5152 GB, free: 220 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005664/0.2939, allocations: 34.88 kB / 0.5152 GB, free: 208 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001174/0.2951, allocations: 406.2 kB / 0.5156 GB, free: 15.96 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001721/0.2968, allocations: 0.7892 MB / 0.5164 GB, free: 15.55 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000989/0.2978, allocations: 458.6 kB / 0.5168 GB, free: 15.29 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002064/0.2999, allocations: 1.922 MB / 0.5187 GB, free: 14.39 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00202/0.3019, allocations: 1.672 MB / 0.5203 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009915/0.3029, allocations: 0.7836 MB / 0.5211 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000949/0.3039, allocations: 0.8107 MB / 0.5219 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002233/0.3041, allocations: 166.4 kB / 0.522 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001101/0.3052, allocations: 0.7124 MB / 0.5227 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005456/0.3058, allocations: 0.5632 MB / 0.5233 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007583/0.3065, allocations: 0.7788 MB / 0.524 GB, free: 11.96 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002486/0.309, allocations: 2.432 MB / 0.5264 GB, free: 11.1 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.3091, allocations: 0 / 0.5264 GB, free: 11.1 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3091, allocations: 0 / 0.5264 GB, free: 11.1 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.287e-05/0.3091, allocations: 0 / 0.5264 GB, free: 11.1 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.003646/0.3127, allocations: 1.924 MB / 0.5283 GB, free: 9.891 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.3128, allocations: 8.438 kB / 0.5283 GB, free: 9.891 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007231/0.3135, allocations: 192.4 kB / 0.5285 GB, free: 9.809 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001783/0.3153, allocations: 0.9839 MB / 0.5294 GB, free: 9.055 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001832/0.3155, allocations: 197.9 kB / 0.5296 GB, free: 8.902 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002741/0.3158, allocations: 117.7 kB / 0.5297 GB, free: 8.863 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003257/0.3191, allocations: 1.817 MB / 0.5315 GB, free: 7.684 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.805e-05/0.3191, allocations: 10.78 kB / 0.5315 GB, free: 7.676 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001387/0.3193, allocations: 55.83 kB / 0.5316 GB, free: 7.633 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001241/0.3194, allocations: 86.67 kB / 0.5317 GB, free: 7.605 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002742/0.3221, allocations: 1.408 MB / 0.533 GB, free: 6.898 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007912/0.3301, allocations: 6.331 MB / 0.5392 GB, free: 1.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002879/0.333, allocations: 1.195 MB / 0.5404 GB, free: 1.027 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001305/0.3343, allocations: 0.5892 MB / 0.541 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.529e-05/0.3343, allocations: 8.406 kB / 0.541 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00148/0.3358, allocations: 0.7754 MB / 0.5417 GB, free: 244 kB / 398.1 MB Notification: Performance of pre-optimization done (n=88): time 2.745e-06/0.3358, allocations: 0 / 0.5417 GB, free: 244 kB / 398.1 MB Notification: Performance of matching and sorting (n=92): time 0.007777/0.3436, allocations: 3.473 MB / 0.5451 GB, free: 14.24 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.743e-05/0.3437, allocations: 149 kB / 0.5453 GB, free: 14.08 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001057/0.3448, allocations: 0.8303 MB / 0.5461 GB, free: 13.61 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.457e-05/0.3449, allocations: 64.69 kB / 0.5461 GB, free: 13.55 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004295/0.3453, allocations: 0.5604 MB / 0.5467 GB, free: 13.03 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002692/0.3456, allocations: 311.7 kB / 0.547 GB, free: 12.72 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003353/0.3459, allocations: 218.8 kB / 0.5472 GB, free: 12.5 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001985/0.3461, allocations: 414.7 kB / 0.5476 GB, free: 12.09 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008384/0.347, allocations: 0.533 MB / 0.5481 GB, free: 11.55 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001034/0.348, allocations: 0.8695 MB / 0.549 GB, free: 10.53 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005164/0.3532, allocations: 2.694 MB / 0.5516 GB, free: 7.664 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.324e-06/0.3532, allocations: 4 kB / 0.5516 GB, free: 7.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003752/0.357, allocations: 2.072 MB / 0.5536 GB, free: 5.57 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.851e-05/0.3571, allocations: 65.67 kB / 0.5537 GB, free: 5.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.734e-05/0.3571, allocations: 12 kB / 0.5537 GB, free: 5.488 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001923/0.359, allocations: 0.791 MB / 0.5545 GB, free: 4.688 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006095/0.3596, allocations: 187.7 kB / 0.5546 GB, free: 4.504 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002211/0.3619, allocations: 1.866 MB / 0.5565 GB, free: 2.605 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007663/0.3626, allocations: 83.81 kB / 0.5565 GB, free: 2.523 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/0.3628, allocations: 79.94 kB / 0.5566 GB, free: 2.445 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.001201/0.364, allocations: 0.8695 MB / 0.5575 GB, free: 1.574 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009733/0.365, allocations: 0.8539 MB / 0.5583 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005064/0.37, allocations: 2.659 MB / 0.5609 GB, free: 13.74 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.828e-06/0.3701, allocations: 4 kB / 0.5609 GB, free: 13.74 MB / 430.1 MB Notification: Performance of matching and sorting (n=154) (initialization_lambda0): time 0.003702/0.3738, allocations: 1.998 MB / 0.5629 GB, free: 11.72 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.672e-05/0.3739, allocations: 65.67 kB / 0.5629 GB, free: 11.65 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.686e-05/0.3739, allocations: 12 kB / 0.5629 GB, free: 11.64 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001838/0.3757, allocations: 0.7677 MB / 0.5637 GB, free: 10.86 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00062/0.3764, allocations: 183.6 kB / 0.5639 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002057/0.3784, allocations: 1.839 MB / 0.5656 GB, free: 8.812 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000916/0.3794, allocations: 79.81 kB / 0.5657 GB, free: 8.734 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001313/0.3795, allocations: 87.86 kB / 0.5658 GB, free: 8.648 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.0003685/0.3799, allocations: 283.7 kB / 0.5661 GB, free: 8.371 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002669/0.3802, allocations: 98.78 kB / 0.5662 GB, free: 8.273 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003006/0.3832, allocations: 1.282 MB / 0.5674 GB, free: 6.98 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.963e-05/0.3832, allocations: 7.984 kB / 0.5674 GB, free: 6.973 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3832, allocations: 0 / 0.5674 GB, free: 6.973 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006319/0.3839, allocations: 295.7 kB / 0.5677 GB, free: 6.664 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002922/0.3842, allocations: 99.88 kB / 0.5678 GB, free: 6.566 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008652/0.385, allocations: 99.81 kB / 0.5679 GB, free: 6.469 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/0.3852, allocations: 56.91 kB / 0.568 GB, free: 6.414 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003437/0.3886, allocations: 1.563 MB / 0.5695 GB, free: 4.84 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004171/0.3928, allocations: 2.265 MB / 0.5717 GB, free: 2.555 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001163/0.394, allocations: 0.5933 MB / 0.5723 GB, free: 1.961 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0008144/0.3948, allocations: 0.5576 MB / 0.5728 GB, free: 1.406 MB / 430.1 MB Notification: Performance of Backend: time 3.51e-07/0.3948, allocations: 0 / 0.5728 GB, free: 1.406 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004422/0.3993, allocations: 2.28 MB / 0.575 GB, free: 15.1 MB / 446.1 MB Notification: Performance of SimCode: time 0.00423/0.4035, allocations: 2.846 MB / 0.5778 GB, free: 12.21 MB / 446.1 MB Notification: Performance of Templates: time 0.03838/0.4419, allocations: 25.16 MB / 0.6024 GB, free: 3.207 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