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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001912/0.001912, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.617/1.617, allocations: 205.1 MB / 223.1 MB, free: 8.465 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00108/0.00108, allocations: 106.9 kB / 270.5 MB, free: 8.426 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1796/0.1796, allocations: 38.01 MB / 355.8 MB, free: 2.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001056/0.001056, allocations: 51.92 kB / 421.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.339, allocations: 55.24 MB / 477.1 MB, free: 9.902 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.008292/0.3473, allocations: 6.757 MB / 483.9 MB, free: 5.113 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.007629/0.355, allocations: 4.959 MB / 488.8 MB, free: 1.703 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001323/0.3563, allocations: 40.44 kB / 488.9 MB, free: 1.688 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01118/0.3675, allocations: 4.815 MB / 493.7 MB, free: 408 kB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001657/0.3692, allocations: 408.1 kB / 494.1 MB, free: 192 kB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009421/0.3702, allocations: 250.8 kB / 494.3 MB, free: 48 kB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004171/0.3744, allocations: 2.293 MB / 496.6 MB, free: 15.2 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001273/0.3757, allocations: 0.6189 MB / 497.2 MB, free: 14.82 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009282/0.3766, allocations: 415.4 kB / 497.6 MB, free: 14.62 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000856/0.3775, allocations: 0.5203 MB / 498.2 MB, free: 14.32 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.783e-05/0.3776, allocations: 41.78 kB / 498.2 MB, free: 14.32 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003967/0.378, allocations: 123.5 kB / 498.3 MB, free: 14.27 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003506/0.3784, allocations: 294 kB / 498.6 MB, free: 14.09 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004956/0.3789, allocations: 369 kB / 499 MB, free: 13.85 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001096/0.38, allocations: 1.002 MB / 500 MB, free: 13.14 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.38, allocations: 0 / 500 MB, free: 13.14 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.38, allocations: 0 / 500 MB, free: 13.14 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.155e-05/0.38, allocations: 0 / 500 MB, free: 13.14 MB / 330.7 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.00248/0.3825, allocations: 1.022 MB / 0.4892 GB, free: 12.32 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.916e-05/0.3826, allocations: 12.97 kB / 0.4893 GB, free: 12.31 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000558/0.3831, allocations: 106.3 kB / 0.4894 GB, free: 12.26 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001312/0.3845, allocations: 0.5997 MB / 0.4899 GB, free: 11.76 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001342/0.3846, allocations: 79.36 kB / 0.49 GB, free: 11.7 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001331/0.3848, allocations: 67.83 kB / 0.4901 GB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001484/0.3862, allocations: 0.8129 MB / 0.4909 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.064e-05/0.3863, allocations: 5.406 kB / 0.4909 GB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.671e-05/0.3864, allocations: 22.16 kB / 0.4909 GB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002215/0.3866, allocations: 56.61 kB / 0.491 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001081/0.3877, allocations: 0.5846 MB / 0.4915 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004495/0.3922, allocations: 2.934 MB / 0.4944 GB, free: 8.504 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008896/0.3931, allocations: 431.7 kB / 0.4948 GB, free: 8.262 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003618/0.3935, allocations: 224.4 kB / 0.495 GB, free: 8.141 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.938e-05/0.3935, allocations: 8.609 kB / 0.495 GB, free: 8.137 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005095/0.394, allocations: 346.1 kB / 0.4954 GB, free: 7.887 MB / 330.7 MB Notification: Performance of pre-optimization done (n=42): time 3.196e-06/0.3941, allocations: 0 / 0.4954 GB, free: 7.887 MB / 330.7 MB Notification: Performance of matching and sorting (n=45): time 0.003503/0.3976, allocations: 2.041 MB / 0.4974 GB, free: 6.305 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.212e-05/0.3977, allocations: 144.4 kB / 0.4975 GB, free: 6.133 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005726/0.3982, allocations: 445.8 kB / 0.4979 GB, free: 5.688 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.129e-05/0.3983, allocations: 37.7 kB / 0.498 GB, free: 5.645 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003331/0.3986, allocations: 327.9 kB / 0.4983 GB, free: 5.32 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001645/0.3988, allocations: 169.7 kB / 0.4984 GB, free: 5.152 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001756/0.399, allocations: 106.2 kB / 0.4985 GB, free: 5.039 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.3992, allocations: 366.8 kB / 0.4989 GB, free: 4.672 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003572/0.3995, allocations: 229.2 kB / 0.4991 GB, free: 4.449 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004523/0.4, allocations: 397.6 kB / 0.4995 GB, free: 3.992 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002869/0.4029, allocations: 1.331 MB / 0.5008 GB, free: 2.562 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.4029, allocations: 0 / 0.5008 GB, free: 2.562 MB / 330.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001846/0.4048, allocations: 0.9707 MB / 0.5017 GB, free: 1.574 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.234e-05/0.4048, allocations: 33.7 kB / 0.5018 GB, free: 1.535 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.4048, allocations: 8 kB / 0.5018 GB, free: 1.527 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009078/0.4057, allocations: 305.6 kB / 0.5021 GB, free: 1.223 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00105/0.4068, allocations: 175.8 kB / 0.5022 GB, free: 1.051 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00635/0.4132, allocations: 4.842 MB / 0.507 GB, free: 11.95 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005088/0.4137, allocations: 23.98 kB / 0.507 GB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.05e-05/0.4138, allocations: 24 kB / 0.507 GB, free: 11.91 MB / 346.7 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.0004997/0.4143, allocations: 303.4 kB / 0.5073 GB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.284e-05/0.4144, allocations: 55.34 kB / 0.5073 GB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00131/0.4157, allocations: 0.8224 MB / 0.5081 GB, free: 10.66 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.4157, allocations: 8 kB / 0.5082 GB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.4157, allocations: 0 / 0.5082 GB, free: 10.65 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.605e-06/0.4157, allocations: 4 kB / 0.5082 GB, free: 10.65 MB / 346.7 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.002484/0.4182, allocations: 1.673 MB / 0.5098 GB, free: 8.844 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.4182, allocations: 0 / 0.5098 GB, free: 8.844 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001373/0.4196, allocations: 199.8 kB / 0.51 GB, free: 8.648 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002415/0.4199, allocations: 78.53 kB / 0.5101 GB, free: 8.562 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.008e-05/0.4199, allocations: 15.98 kB / 0.5101 GB, free: 8.547 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002917/0.4228, allocations: 3.953 MB / 0.5139 GB, free: 4.191 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.4229, allocations: 8.047 kB / 0.5139 GB, free: 4.184 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01034/0.4332, allocations: 8.838 MB / 0.5226 GB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002885/0.4335, allocations: 172.4 kB / 0.5227 GB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.025e-05/0.4337, allocations: 19.92 kB / 0.5228 GB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002982/0.434, allocations: 19.98 kB / 0.5228 GB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001275/0.4341, allocations: 39.91 kB / 0.5228 GB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.154e-05/0.4342, allocations: 19.98 kB / 0.5228 GB, free: 10.34 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004268/0.4346, allocations: 307.1 kB / 0.5231 GB, free: 10.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4346, allocations: 0 / 0.5231 GB, free: 10.04 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001039/0.4356, allocations: 228 kB / 0.5233 GB, free: 9.816 MB / 362.7 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.0001813/0.4358, allocations: 119.3 kB / 0.5235 GB, free: 9.691 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001987/0.4378, allocations: 0.9836 MB / 0.5244 GB, free: 8.664 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.4379, allocations: 4 kB / 0.5244 GB, free: 8.66 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008314/0.4387, allocations: 0.637 MB / 0.525 GB, free: 7.973 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007037/0.4394, allocations: 121.8 kB / 0.5252 GB, free: 7.852 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00442/0.4438, allocations: 2.66 MB / 0.5278 GB, free: 5.094 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008454/0.4447, allocations: 0.9997 MB / 0.5287 GB, free: 4.066 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005004/0.4452, allocations: 124.7 kB / 0.5288 GB, free: 3.941 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001688/0.4454, allocations: 43.44 kB / 0.5289 GB, free: 3.898 MB / 362.7 MB Notification: Performance of SimCode: time 1.072e-06/0.4454, allocations: 0 / 0.5289 GB, free: 3.898 MB / 362.7 MB Notification: Performance of Templates: time 0.01967/0.4651, allocations: 9.737 MB / 0.5384 GB, free: 10.18 MB / 378.7 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@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches