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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 112.9 kB / 17.06 MB, free: 5.945 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.001481/0.001481, allocations: 200 kB / 18.01 MB, free: 5.031 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.477/1.477, allocations: 222.9 MB / 241.7 MB, free: 14.87 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1838/0.1838, allocations: 38.04 MB / 329.9 MB, free: 8.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002918/0.002918, allocations: 63.89 kB / 457.7 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.329/0.3319, allocations: 58.06 MB / 0.5036 GB, free: 7.367 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.007187/0.3392, allocations: 5.707 MB / 0.5092 GB, free: 3.406 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005965/0.3452, allocations: 4.435 MB / 0.5135 GB, free: 336 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004737/0.3457, allocations: 24.88 kB / 0.5136 GB, free: 324 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01032/0.356, allocations: 4.904 MB / 0.5183 GB, free: 14.88 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00166/0.3577, allocations: 441.1 kB / 0.5188 GB, free: 14.64 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008919/0.3587, allocations: 274.8 kB / 0.519 GB, free: 14.49 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0029/0.3616, allocations: 1.722 MB / 0.5207 GB, free: 13.87 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001036/0.3626, allocations: 0.7245 MB / 0.5214 GB, free: 13.54 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008917/0.3635, allocations: 469.3 kB / 0.5219 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008865/0.3644, allocations: 0.5022 MB / 0.5224 GB, free: 13.14 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001216/0.3646, allocations: 72.69 kB / 0.5224 GB, free: 13.14 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003471/0.3649, allocations: 139.5 kB / 0.5226 GB, free: 13.12 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003926/0.3653, allocations: 328.3 kB / 0.5229 GB, free: 12.99 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004577/0.3658, allocations: 397.5 kB / 0.5232 GB, free: 12.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001483/0.3673, allocations: 1.037 MB / 0.5243 GB, free: 12.36 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3673, allocations: 4.453 kB / 0.5243 GB, free: 12.35 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3673, allocations: 1.438 kB / 0.5243 GB, free: 12.35 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.197e-05/0.3673, allocations: 4 kB / 0.5243 GB, free: 12.35 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.002371/0.3697, allocations: 1.048 MB / 0.5253 GB, free: 11.58 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.289e-05/0.3698, allocations: 13.8 kB / 0.5253 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001655/0.3699, allocations: 103.6 kB / 0.5254 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005465/0.3705, allocations: 100.8 kB / 0.5255 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001438/0.3719, allocations: 0.6255 MB / 0.5261 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001174/0.3721, allocations: 77.3 kB / 0.5262 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001282/0.3722, allocations: 59.81 kB / 0.5262 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001511/0.3737, allocations: 0.8092 MB / 0.527 GB, free: 10.58 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.694e-05/0.3738, allocations: 14.58 kB / 0.527 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.985e-05/0.3739, allocations: 25.67 kB / 0.5271 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001374/0.374, allocations: 54.19 kB / 0.5271 GB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001021/0.375, allocations: 0.587 MB / 0.5277 GB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004452/0.3795, allocations: 2.921 MB / 0.5305 GB, free: 7.926 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000885/0.3804, allocations: 435.3 kB / 0.531 GB, free: 7.68 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003492/0.3808, allocations: 236.2 kB / 0.5312 GB, free: 7.547 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.677e-05/0.3808, allocations: 4.812 kB / 0.5312 GB, free: 7.547 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000516/0.3813, allocations: 334 kB / 0.5315 GB, free: 7.309 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.114e-06/0.3814, allocations: 7.938 kB / 0.5315 GB, free: 7.301 MB / 398.1 MB Notification: Performance of matching and sorting (n=45): time 0.003602/0.385, allocations: 2.046 MB / 0.5335 GB, free: 5.773 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.586e-05/0.3851, allocations: 142.8 kB / 0.5337 GB, free: 5.609 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000624/0.3857, allocations: 447.1 kB / 0.5341 GB, free: 5.34 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.298e-05/0.3858, allocations: 37.02 kB / 0.5341 GB, free: 5.301 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003044/0.3861, allocations: 346.1 kB / 0.5344 GB, free: 4.992 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.3863, allocations: 160.4 kB / 0.5346 GB, free: 4.855 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002111/0.3865, allocations: 120.6 kB / 0.5347 GB, free: 4.777 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002109/0.3867, allocations: 359.7 kB / 0.5351 GB, free: 4.43 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004079/0.3871, allocations: 232.7 kB / 0.5353 GB, free: 4.316 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005023/0.3876, allocations: 397.5 kB / 0.5357 GB, free: 3.992 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002909/0.3906, allocations: 1.328 MB / 0.537 GB, free: 3.098 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.69e-06/0.3906, allocations: 1.312 kB / 0.537 GB, free: 3.098 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001934/0.3925, allocations: 0.9695 MB / 0.5379 GB, free: 2.543 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.595e-05/0.3926, allocations: 38.09 kB / 0.5379 GB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.3926, allocations: 3.938 kB / 0.5379 GB, free: 2.508 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009287/0.3935, allocations: 306 kB / 0.5382 GB, free: 2.359 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001014/0.3946, allocations: 172.4 kB / 0.5384 GB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007743/0.4023, allocations: 5.303 MB / 0.5436 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005807/0.4029, allocations: 31.59 kB / 0.5436 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.493e-05/0.403, allocations: 22.66 kB / 0.5436 GB, free: 13.88 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.0005532/0.4036, allocations: 305.2 kB / 0.5439 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.4037, allocations: 60.39 kB / 0.544 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001341/0.405, allocations: 0.807 MB / 0.5448 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.405, allocations: 4.906 kB / 0.5448 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.4051, allocations: 1.531 kB / 0.5448 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.4051, allocations: 3.984 kB / 0.5448 GB, free: 12.99 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.002866/0.4079, allocations: 1.669 MB / 0.5464 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.223e-06/0.408, allocations: 4 kB / 0.5464 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001322/0.4093, allocations: 191.9 kB / 0.5466 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002375/0.4095, allocations: 86.45 kB / 0.5467 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.343e-05/0.4096, allocations: 12 kB / 0.5467 GB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003478/0.4131, allocations: 4.257 MB / 0.5508 GB, free: 6.719 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.4131, allocations: 3.938 kB / 0.5508 GB, free: 6.715 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00186/0.415, allocations: 1.116 MB / 0.5519 GB, free: 5.516 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003524/0.4154, allocations: 184.6 kB / 0.5521 GB, free: 5.316 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.196e-05/0.4154, allocations: 12 kB / 0.5521 GB, free: 5.305 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002746/0.4157, allocations: 23.98 kB / 0.5521 GB, free: 5.281 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/0.4158, allocations: 27.95 kB / 0.5522 GB, free: 5.254 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.879e-05/0.4159, allocations: 16 kB / 0.5522 GB, free: 5.238 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004455/0.4163, allocations: 315.1 kB / 0.5525 GB, free: 4.93 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.677e-06/0.4164, allocations: 0 / 0.5525 GB, free: 4.93 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008353/0.4172, allocations: 167.9 kB / 0.5527 GB, free: 4.766 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.002038/0.4192, allocations: 1.68 MB / 0.5543 GB, free: 2.988 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002017/0.4213, allocations: 0.98 MB / 0.5552 GB, free: 1.969 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.4213, allocations: 192 / 0.5552 GB, free: 1.969 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009268/0.4222, allocations: 0.6489 MB / 0.5559 GB, free: 1.27 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009196/0.4232, allocations: 134.6 kB / 0.556 GB, free: 1.145 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01014/0.4333, allocations: 6.179 MB / 0.562 GB, free: 10.72 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007065/0.4341, allocations: 0.9799 MB / 0.563 GB, free: 9.711 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004833/0.4346, allocations: 112.7 kB / 0.5631 GB, free: 9.602 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000343/0.4349, allocations: 215.4 kB / 0.5633 GB, free: 9.391 MB / 430.1 MB Notification: Performance of SimCode: time 1.202e-06/0.4349, allocations: 11.94 kB / 0.5633 GB, free: 9.379 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05058/0.4855, allocations: 14.2 MB / 0.5772 GB, free: 11.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.08/13.56, allocations: 9.688 kB / 0.5772 GB, free: 11.37 MB / 446.1 MB (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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_Y_D.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.mat","/var/lib/jenkins1/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