Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.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.ASM_Y_D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm_Y_D.motor.slip|frictTorq.flange.tau|frictTorq.w|loadInertia.flange_a.tau|power.p.1.|power.p.2.|power.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|asm_Y_D.motor.slip|frictTorq.flange.tau|frictTorq.w|loadInertia.flange_a.tau|power.p.1.|power.p.2.|power.p.3.",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001567/0.001567, allocations: 110.9 kB / 17.06 MB, free: 6.012 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.001815/0.001816, allocations: 191 kB / 18 MB, free: 5.098 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.42/1.42, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1834/0.1834, allocations: 38.06 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 59.91 kB / 458.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4584/0.4597, allocations: 58.05 MB / 0.5041 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.008388/0.4681, allocations: 5.72 MB / 0.5097 GB, free: 3.797 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007495/0.4757, allocations: 4.445 MB / 0.514 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006976/0.4764, allocations: 16.78 kB / 0.514 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01052/0.487, allocations: 4.893 MB / 0.5188 GB, free: 15.28 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001423/0.4884, allocations: 441.3 kB / 0.5192 GB, free: 15.04 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008666/0.4893, allocations: 280.5 kB / 0.5195 GB, free: 14.89 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002743/0.4921, allocations: 1.71 MB / 0.5212 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001105/0.4932, allocations: 0.7334 MB / 0.5219 GB, free: 13.94 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009336/0.4941, allocations: 477.7 kB / 0.5223 GB, free: 13.74 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007984/0.495, allocations: 0.4978 MB / 0.5228 GB, free: 13.54 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001314/0.4951, allocations: 72.44 kB / 0.5229 GB, free: 13.54 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004349/0.4955, allocations: 136.9 kB / 0.523 GB, free: 13.52 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003918/0.4959, allocations: 331.2 kB / 0.5233 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004663/0.4964, allocations: 397.8 kB / 0.5237 GB, free: 13.14 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001584/0.498, allocations: 1.033 MB / 0.5247 GB, free: 12.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.498, allocations: 9.438 kB / 0.5247 GB, free: 12.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.498, allocations: 0 / 0.5247 GB, free: 12.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.685e-05/0.4981, allocations: 0 / 0.5247 GB, free: 12.75 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: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.002112/0.5002, allocations: 1.049 MB / 0.5258 GB, free: 11.98 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.088e-05/0.5002, allocations: 12.98 kB / 0.5258 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004783/0.5007, allocations: 100.4 kB / 0.5259 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001292/0.502, allocations: 0.6222 MB / 0.5265 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000124/0.5022, allocations: 83.62 kB / 0.5266 GB, free: 11.44 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000152/0.5023, allocations: 63.67 kB / 0.5266 GB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001409/0.5037, allocations: 0.8078 MB / 0.5274 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.563e-05/0.5038, allocations: 18.34 kB / 0.5274 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.781e-05/0.5039, allocations: 25.58 kB / 0.5275 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001416/0.504, allocations: 50.09 kB / 0.5275 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000963/0.505, allocations: 0.5845 MB / 0.5281 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004024/0.509, allocations: 2.921 MB / 0.5309 GB, free: 8.242 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009152/0.51, allocations: 431.5 kB / 0.5313 GB, free: 8 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00039/0.5104, allocations: 231.3 kB / 0.5316 GB, free: 7.871 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.746e-05/0.5104, allocations: 5.938 kB / 0.5316 GB, free: 7.871 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005443/0.511, allocations: 341.2 kB / 0.5319 GB, free: 7.625 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 3.446e-06/0.511, allocations: 0 / 0.5319 GB, free: 7.625 MB / 398.1 MB Notification: Performance of matching and sorting (n=45): time 0.003591/0.5146, allocations: 2.053 MB / 0.5339 GB, free: 6.09 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.874e-05/0.5147, allocations: 139.7 kB / 0.534 GB, free: 5.93 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006325/0.5153, allocations: 455.6 kB / 0.5345 GB, free: 5.652 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.99e-05/0.5154, allocations: 35.89 kB / 0.5345 GB, free: 5.613 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002986/0.5157, allocations: 335 kB / 0.5348 GB, free: 5.316 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001635/0.5159, allocations: 174.8 kB / 0.535 GB, free: 5.164 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002044/0.5161, allocations: 113 kB / 0.5351 GB, free: 5.094 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.5163, allocations: 364.2 kB / 0.5354 GB, free: 4.742 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003936/0.5167, allocations: 231.9 kB / 0.5357 GB, free: 4.629 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004941/0.5172, allocations: 393.6 kB / 0.536 GB, free: 4.309 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002911/0.5201, allocations: 1.325 MB / 0.5373 GB, free: 3.418 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/0.5201, allocations: 2.094 kB / 0.5373 GB, free: 3.418 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00198/0.5221, allocations: 0.9692 MB / 0.5383 GB, free: 2.863 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.87e-05/0.5222, allocations: 32.45 kB / 0.5383 GB, free: 2.832 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.5222, allocations: 4.938 kB / 0.5383 GB, free: 2.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009508/0.5231, allocations: 316.9 kB / 0.5386 GB, free: 2.676 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/0.5242, allocations: 172.7 kB / 0.5388 GB, free: 2.629 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00752/0.5317, allocations: 5.294 MB / 0.544 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006513/0.5324, allocations: 31.09 kB / 0.544 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.435e-05/0.5325, allocations: 27.59 kB / 0.544 GB, free: 14.19 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.asm_Y_D.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,relay1.y,$PRE.relay1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0006081/0.5331, allocations: 300.3 kB / 0.5443 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001257/0.5332, allocations: 57.8 kB / 0.5443 GB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001429/0.5347, allocations: 0.8124 MB / 0.5451 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/0.5347, allocations: 7.781 kB / 0.5451 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.5347, allocations: 1.406 kB / 0.5451 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.5347, allocations: 1.438 kB / 0.5452 GB, free: 13.31 MB / 414.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00296/0.5377, allocations: 1.669 MB / 0.5468 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.5377, allocations: 0 / 0.5468 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00136/0.5391, allocations: 199.8 kB / 0.547 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003469/0.5394, allocations: 74.53 kB / 0.547 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.96e-05/0.5395, allocations: 23.92 kB / 0.5471 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005527/0.5451, allocations: 4.257 MB / 0.5512 GB, free: 6.77 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.5451, allocations: 0 / 0.5512 GB, free: 6.77 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002668/0.5478, allocations: 1.12 MB / 0.5523 GB, free: 5.566 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007283/0.5486, allocations: 184.6 kB / 0.5525 GB, free: 5.367 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.938e-05/0.5487, allocations: 12 kB / 0.5525 GB, free: 5.355 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003986/0.5491, allocations: 19.98 kB / 0.5525 GB, free: 5.336 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001473/0.5492, allocations: 35.89 kB / 0.5526 GB, free: 5.301 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.361e-05/0.5493, allocations: 12 kB / 0.5526 GB, free: 5.289 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006595/0.55, allocations: 319.1 kB / 0.5529 GB, free: 4.977 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.55, allocations: 0 / 0.5529 GB, free: 4.977 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001294/0.5513, allocations: 160 kB / 0.553 GB, free: 4.82 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.psi_s[1],asm_Y_D.motor.psi_s[2],asm_Y_D.motor.psi_rd[1],asm_Y_D.motor.psi_rq[1],loadInertia.w,frictTorq.phi) * Number of discrete variables: 4 ($whenCondition1,relay1.y,relay1.cnt,system.initime) * Number of discrete states: 3 (relay1.y,relay1.cnt,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002192/0.5515, allocations: 119.1 kB / 0.5531 GB, free: 4.691 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002713/0.5542, allocations: 0.9795 MB / 0.5541 GB, free: 3.672 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.5543, allocations: 0.8125 kB / 0.5541 GB, free: 3.672 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001143/0.5554, allocations: 0.6489 MB / 0.5547 GB, free: 2.973 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001266/0.5567, allocations: 143.2 kB / 0.5549 GB, free: 2.844 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00404/0.5607, allocations: 1.666 MB / 0.5565 GB, free: 1.133 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001061/0.5618, allocations: 0.9799 MB / 0.5575 GB, free: 128 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005845/0.5624, allocations: 116.7 kB / 0.5576 GB, free: 12 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000184/0.5626, allocations: 39.48 kB / 0.5576 GB, free: 15.97 MB / 430.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5627, allocations: 0 / 0.5576 GB, free: 15.97 MB / 430.1 MB Notification: Performance of Templates: time 0.02972/0.5924, allocations: 8.539 MB / 0.5659 GB, free: 7.508 MB / 430.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches