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.001399/0.001399, allocations: 103.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.001512/0.001512, allocations: 195 kB / 18 MB, free: 5.094 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.421/1.421, allocations: 222.9 MB / 241.7 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.1803/0.1803, allocations: 38.05 MB / 329.9 MB, free: 8.77 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002197/0.002197, allocations: 63.91 kB / 458.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4355/0.4377, allocations: 58.05 MB / 0.5041 GB, free: 7.762 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.008078/0.4458, allocations: 5.725 MB / 0.5097 GB, free: 3.789 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007324/0.4532, allocations: 4.433 MB / 0.514 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006607/0.4539, allocations: 21.75 kB / 0.514 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01235/0.4662, allocations: 4.885 MB / 0.5188 GB, free: 15.29 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001923/0.4682, allocations: 445.8 kB / 0.5192 GB, free: 15.04 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001072/0.4693, allocations: 276.2 kB / 0.5195 GB, free: 14.89 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003527/0.4728, allocations: 1.723 MB / 0.5212 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001291/0.4741, allocations: 0.7298 MB / 0.5219 GB, free: 13.94 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001012/0.4752, allocations: 478.9 kB / 0.5223 GB, free: 13.74 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008785/0.4761, allocations: 0.4988 MB / 0.5228 GB, free: 13.54 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001264/0.4762, allocations: 76.84 kB / 0.5229 GB, free: 13.54 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003962/0.4766, allocations: 140 kB / 0.523 GB, free: 13.51 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000443/0.4771, allocations: 327.8 kB / 0.5234 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007846/0.4778, allocations: 396.9 kB / 0.5237 GB, free: 13.14 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001595/0.4794, allocations: 1.03 MB / 0.5247 GB, free: 12.76 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.4795, allocations: 0.8906 kB / 0.5247 GB, free: 12.76 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.4795, allocations: 0 / 0.5247 GB, free: 12.76 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.153e-05/0.4795, allocations: 1.281 kB / 0.5247 GB, free: 12.76 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.002359/0.4819, allocations: 1.035 MB / 0.5258 GB, free: 12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/0.4819, allocations: 13.73 kB / 0.5258 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005366/0.4825, allocations: 107.6 kB / 0.5259 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001437/0.4839, allocations: 0.6179 MB / 0.5265 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000114/0.484, allocations: 77.14 kB / 0.5265 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001408/0.4842, allocations: 63.73 kB / 0.5266 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001605/0.4858, allocations: 0.812 MB / 0.5274 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.716e-05/0.4859, allocations: 2.375 kB / 0.5274 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.647e-05/0.4859, allocations: 25.8 kB / 0.5274 GB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001426/0.4861, allocations: 50.19 kB / 0.5275 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.4871, allocations: 0.5917 MB / 0.5281 GB, free: 10.64 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004451/0.4916, allocations: 2.923 MB / 0.5309 GB, free: 8.324 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008855/0.4925, allocations: 427.9 kB / 0.5313 GB, free: 8.086 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003769/0.4929, allocations: 235.9 kB / 0.5315 GB, free: 7.953 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.818e-05/0.4929, allocations: 9.125 kB / 0.5315 GB, free: 7.949 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005696/0.4935, allocations: 344.4 kB / 0.5319 GB, free: 7.699 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.304e-06/0.4935, allocations: 1.125 kB / 0.5319 GB, free: 7.699 MB / 398.1 MB Notification: Performance of matching and sorting (n=45): time 0.00354/0.497, allocations: 2.02 MB / 0.5339 GB, free: 6.195 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/0.4972, allocations: 150.1 kB / 0.534 GB, free: 6.023 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005985/0.4978, allocations: 452.3 kB / 0.5344 GB, free: 5.75 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.55e-05/0.4978, allocations: 36.17 kB / 0.5345 GB, free: 5.711 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002994/0.4981, allocations: 334.1 kB / 0.5348 GB, free: 5.414 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001526/0.4983, allocations: 163.1 kB / 0.5349 GB, free: 5.273 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002009/0.4985, allocations: 108.5 kB / 0.535 GB, free: 5.207 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.4987, allocations: 364.2 kB / 0.5354 GB, free: 4.855 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003864/0.4991, allocations: 231.1 kB / 0.5356 GB, free: 4.742 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005178/0.4996, allocations: 394.2 kB / 0.536 GB, free: 4.422 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00286/0.5025, allocations: 1.328 MB / 0.5373 GB, free: 3.527 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.5025, allocations: 1.594 kB / 0.5373 GB, free: 3.527 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001832/0.5043, allocations: 0.9692 MB / 0.5382 GB, free: 2.973 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.029e-05/0.5044, allocations: 32.83 kB / 0.5383 GB, free: 2.941 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.5044, allocations: 5.688 kB / 0.5383 GB, free: 2.941 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009382/0.5054, allocations: 312.5 kB / 0.5386 GB, free: 2.789 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009773/0.5063, allocations: 176.1 kB / 0.5387 GB, free: 2.738 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006923/0.5133, allocations: 5.285 MB / 0.5439 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005643/0.5139, allocations: 23.17 kB / 0.5439 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.307e-05/0.5139, allocations: 28.3 kB / 0.5439 GB, free: 14.32 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.000557/0.5145, allocations: 300.4 kB / 0.5442 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.883e-05/0.5146, allocations: 56.31 kB / 0.5443 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001462/0.5161, allocations: 0.8085 MB / 0.5451 GB, free: 13.45 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.766e-06/0.5161, allocations: 8.219 kB / 0.5451 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.5161, allocations: 1.375 kB / 0.5451 GB, free: 13.44 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.5161, allocations: 5.391 kB / 0.5451 GB, free: 13.44 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.002718/0.5188, allocations: 1.677 MB / 0.5467 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/0.5189, allocations: 0 / 0.5467 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0013/0.5202, allocations: 187.9 kB / 0.5469 GB, free: 11.63 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002269/0.5204, allocations: 78.52 kB / 0.547 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.077e-05/0.5205, allocations: 15.94 kB / 0.547 GB, free: 11.53 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003448/0.5239, allocations: 4.268 MB / 0.5512 GB, free: 6.836 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.5239, allocations: 0 / 0.5512 GB, free: 6.836 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001746/0.5257, allocations: 1.124 MB / 0.5523 GB, free: 5.629 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003545/0.5261, allocations: 168.4 kB / 0.5524 GB, free: 5.445 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.305e-05/0.5261, allocations: 19.92 kB / 0.5524 GB, free: 5.426 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002643/0.5264, allocations: 15.98 kB / 0.5525 GB, free: 5.41 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.917e-05/0.5265, allocations: 27.97 kB / 0.5525 GB, free: 5.383 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.805e-05/0.5266, allocations: 19.98 kB / 0.5525 GB, free: 5.363 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004745/0.527, allocations: 315.1 kB / 0.5528 GB, free: 5.055 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.527, allocations: 0 / 0.5528 GB, free: 5.055 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008478/0.5279, allocations: 160 kB / 0.553 GB, free: 4.898 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.0001612/0.5281, allocations: 115.2 kB / 0.5531 GB, free: 4.773 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001933/0.53, allocations: 0.9917 MB / 0.554 GB, free: 3.742 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.53, allocations: 0 / 0.554 GB, free: 3.742 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/0.5311, allocations: 0.6382 MB / 0.5547 GB, free: 3.055 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009855/0.5321, allocations: 139.3 kB / 0.5548 GB, free: 2.926 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003737/0.5358, allocations: 1.655 MB / 0.5564 GB, free: 1.23 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007332/0.5366, allocations: 0.976 MB / 0.5574 GB, free: 232 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006319/0.5372, allocations: 116.7 kB / 0.5575 GB, free: 116 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.5373, allocations: 47.36 kB / 0.5575 GB, free: 68 kB / 414.1 MB Notification: Performance of SimCode: time 1.002e-06/0.5373, allocations: 0 / 0.5575 GB, free: 68 kB / 414.1 MB Notification: Performance of Templates: time 0.01724/0.5546, allocations: 8.733 MB / 0.566 GB, free: 7.406 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