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.001426/0.001426, allocations: 111.5 kB / 17.06 MB, free: 5.973 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.001566/0.001566, allocations: 200 kB / 18.01 MB, free: 5.055 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.502/1.502, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1775/0.1775, allocations: 38.05 MB / 329.9 MB, free: 8.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001879, allocations: 63.91 kB / 458.1 MB, free: 6.844 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4588/0.4607, allocations: 58.05 MB / 0.5041 GB, free: 7.836 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.007701/0.4684, allocations: 5.718 MB / 0.5097 GB, free: 3.867 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006761/0.4752, allocations: 4.438 MB / 0.514 GB, free: 0.793 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001055/0.4763, allocations: 20.69 kB / 0.514 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01205/0.4885, allocations: 4.9 MB / 0.5188 GB, free: 15.35 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00171/0.4903, allocations: 449.1 kB / 0.5192 GB, free: 15.11 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001078/0.4914, allocations: 277.2 kB / 0.5195 GB, free: 14.96 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003249/0.4947, allocations: 1.719 MB / 0.5212 GB, free: 14.34 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001118/0.4958, allocations: 0.7343 MB / 0.5219 GB, free: 14 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001101/0.4969, allocations: 480.1 kB / 0.5224 GB, free: 13.8 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009658/0.4979, allocations: 0.4952 MB / 0.5229 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001229/0.498, allocations: 76.22 kB / 0.5229 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003678/0.4984, allocations: 143.4 kB / 0.5231 GB, free: 13.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003677/0.4988, allocations: 323 kB / 0.5234 GB, free: 13.45 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004399/0.4992, allocations: 402.3 kB / 0.5238 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001297/0.5005, allocations: 1.026 MB / 0.5248 GB, free: 12.82 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.5006, allocations: 0 / 0.5248 GB, free: 12.82 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.5006, allocations: 1.125 kB / 0.5248 GB, free: 12.82 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.585e-05/0.5006, allocations: 0 / 0.5248 GB, free: 12.82 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.002014/0.5026, allocations: 1.033 MB / 0.5258 GB, free: 12.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.5027, allocations: 13.2 kB / 0.5258 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004388/0.5031, allocations: 108 kB / 0.5259 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001195/0.5043, allocations: 0.6185 MB / 0.5265 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.332e-05/0.5044, allocations: 86.97 kB / 0.5266 GB, free: 11.49 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/0.5045, allocations: 60.34 kB / 0.5266 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001342/0.5059, allocations: 0.8107 MB / 0.5274 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.699e-05/0.5059, allocations: 2.062 kB / 0.5274 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.348e-05/0.506, allocations: 29.67 kB / 0.5274 GB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001347/0.5061, allocations: 50.09 kB / 0.5275 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009823/0.5071, allocations: 0.5886 MB / 0.5281 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004185/0.5113, allocations: 2.915 MB / 0.5309 GB, free: 8.309 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008977/0.5122, allocations: 431.8 kB / 0.5313 GB, free: 8.066 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003864/0.5126, allocations: 227.9 kB / 0.5315 GB, free: 7.941 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.779e-05/0.5127, allocations: 12.89 kB / 0.5316 GB, free: 7.934 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005486/0.5133, allocations: 341.3 kB / 0.5319 GB, free: 7.688 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 3.486e-06/0.5133, allocations: 0 / 0.5319 GB, free: 7.688 MB / 398.1 MB Notification: Performance of matching and sorting (n=45): time 0.003521/0.5168, allocations: 2.029 MB / 0.5339 GB, free: 6.176 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.787e-05/0.5169, allocations: 146.9 kB / 0.534 GB, free: 6.008 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005593/0.5175, allocations: 447.1 kB / 0.5344 GB, free: 5.738 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.621e-05/0.5175, allocations: 44.23 kB / 0.5345 GB, free: 5.691 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003009/0.5179, allocations: 330.5 kB / 0.5348 GB, free: 5.398 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001516/0.518, allocations: 154.6 kB / 0.5349 GB, free: 5.266 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001835/0.5182, allocations: 112.4 kB / 0.535 GB, free: 5.195 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.5184, allocations: 364.5 kB / 0.5354 GB, free: 4.844 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003765/0.5188, allocations: 227.8 kB / 0.5356 GB, free: 4.734 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005114/0.5193, allocations: 401.9 kB / 0.536 GB, free: 4.406 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003106/0.5224, allocations: 1.332 MB / 0.5373 GB, free: 3.508 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.5224, allocations: 1.781 kB / 0.5373 GB, free: 3.508 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001971/0.5244, allocations: 0.9611 MB / 0.5382 GB, free: 2.961 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.029e-05/0.5245, allocations: 41.44 kB / 0.5383 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/0.5245, allocations: 4.375 kB / 0.5383 GB, free: 2.922 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009531/0.5254, allocations: 306.6 kB / 0.5386 GB, free: 2.773 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008932/0.5263, allocations: 180 kB / 0.5387 GB, free: 2.719 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007051/0.5334, allocations: 5.296 MB / 0.5439 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005983/0.534, allocations: 23.55 kB / 0.5439 GB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.459e-05/0.5341, allocations: 27.41 kB / 0.544 GB, free: 14.29 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.0005584/0.5347, allocations: 293 kB / 0.5442 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.282e-05/0.5348, allocations: 61.09 kB / 0.5443 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00121/0.536, allocations: 0.8086 MB / 0.5451 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/0.536, allocations: 8.188 kB / 0.5451 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.536, allocations: 1.406 kB / 0.5451 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.536, allocations: 5.547 kB / 0.5451 GB, free: 13.41 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.00238/0.5384, allocations: 1.666 MB / 0.5467 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.5384, allocations: 7.938 kB / 0.5467 GB, free: 11.78 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001113/0.5396, allocations: 187.9 kB / 0.5469 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002203/0.5398, allocations: 82.41 kB / 0.547 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.486e-05/0.5398, allocations: 19.92 kB / 0.547 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003189/0.543, allocations: 4.253 MB / 0.5512 GB, free: 6.812 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.5431, allocations: 4.031 kB / 0.5512 GB, free: 6.809 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001548/0.5446, allocations: 1.131 MB / 0.5523 GB, free: 5.594 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004277/0.5451, allocations: 168.4 kB / 0.5524 GB, free: 5.41 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.718e-05/0.5451, allocations: 16 kB / 0.5524 GB, free: 5.395 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002603/0.5454, allocations: 15.98 kB / 0.5525 GB, free: 5.379 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.5455, allocations: 31.95 kB / 0.5525 GB, free: 5.348 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.537e-05/0.5456, allocations: 16 kB / 0.5525 GB, free: 5.332 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000407/0.546, allocations: 319.1 kB / 0.5528 GB, free: 5.02 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.546, allocations: 0 / 0.5528 GB, free: 5.02 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008302/0.5468, allocations: 164 kB / 0.553 GB, free: 4.859 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.0001677/0.547, allocations: 114.2 kB / 0.5531 GB, free: 4.738 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00181/0.5488, allocations: 0.9917 MB / 0.554 GB, free: 3.707 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.5488, allocations: 4 kB / 0.5541 GB, free: 3.703 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000836/0.5497, allocations: 0.6382 MB / 0.5547 GB, free: 3.016 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007405/0.5504, allocations: 132.5 kB / 0.5548 GB, free: 2.891 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002902/0.5533, allocations: 1.645 MB / 0.5564 GB, free: 1.203 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007412/0.5541, allocations: 0.9839 MB / 0.5574 GB, free: 196 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003719/0.5545, allocations: 120.7 kB / 0.5575 GB, free: 76 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001143/0.5546, allocations: 39.38 kB / 0.5575 GB, free: 36 kB / 414.1 MB Notification: Performance of SimCode: time 7.01e-07/0.5546, allocations: 0 / 0.5575 GB, free: 36 kB / 414.1 MB Notification: Performance of Templates: time 0.0163/0.5709, allocations: 8.538 MB / 0.5659 GB, free: 7.57 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