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.001407/0.001407, allocations: 97.33 kB / 16.5 MB, free: 6.641 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.001633/0.001633, allocations: 194.3 kB / 17.42 MB, free: 6.066 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.448/1.448, allocations: 222.9 MB / 241.1 MB, free: 15.33 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1858/0.1858, allocations: 38.04 MB / 329.3 MB, free: 9.078 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 69.3 kB / 398.1 MB, free: 34.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1025, allocations: 58.07 MB / 456.2 MB, free: 8.543 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.008331/0.1109, allocations: 6.747 MB / 462.9 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008331/0.1193, allocations: 4.94 MB / 467.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001056/0.1204, allocations: 39.75 kB / 467.9 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009479/0.1299, allocations: 4.796 MB / 472.7 MB, free: 7.957 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001123/0.131, allocations: 414.4 kB / 473.1 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006982/0.1317, allocations: 251.7 kB / 473.3 MB, free: 7.305 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002923/0.1347, allocations: 2.288 MB / 475.6 MB, free: 5.012 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001297/0.136, allocations: 0.6141 MB / 476.2 MB, free: 4.398 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009114/0.1369, allocations: 410.5 kB / 476.6 MB, free: 3.996 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001031/0.138, allocations: 0.5177 MB / 477.2 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001849/0.1382, allocations: 48 kB / 477.2 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004903/0.1387, allocations: 123.8 kB / 477.3 MB, free: 3.309 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004322/0.1391, allocations: 299.2 kB / 477.6 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000675/0.1398, allocations: 362.2 kB / 478 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001233/0.141, allocations: 1.005 MB / 479 MB, free: 1.652 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.141, allocations: 0 / 479 MB, free: 1.652 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1411, allocations: 0 / 479 MB, free: 1.652 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.136e-05/0.1411, allocations: 0 / 479 MB, free: 1.652 MB / 350.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.002624/0.1437, allocations: 1.032 MB / 480 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/0.1438, allocations: 8.031 kB / 480 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005541/0.1444, allocations: 104 kB / 480.1 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001212/0.1456, allocations: 0.6 MB / 480.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.039e-05/0.1457, allocations: 75.02 kB / 480.8 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001265/0.1458, allocations: 63.91 kB / 480.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/0.1472, allocations: 0.8099 MB / 481.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.499e-05/0.1473, allocations: 8 kB / 481.7 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.113e-05/0.1473, allocations: 23.83 kB / 481.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001447/0.1475, allocations: 49.28 kB / 481.7 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001005/0.1485, allocations: 0.5905 MB / 482.3 MB, free: 14.15 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004255/0.1527, allocations: 2.939 MB / 485.3 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007841/0.1536, allocations: 434.1 kB / 485.7 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003259/0.1539, allocations: 226.7 kB / 485.9 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.553e-05/0.1539, allocations: 8 kB / 485.9 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004775/0.1544, allocations: 338.5 kB / 486.3 MB, free: 10.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=42): time 2.855e-06/0.1544, allocations: 0 / 486.3 MB, free: 10.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003328/0.1578, allocations: 2.036 MB / 488.3 MB, free: 7.883 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001164/0.1579, allocations: 152.5 kB / 488.4 MB, free: 7.703 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000583/0.1585, allocations: 441.8 kB / 488.9 MB, free: 7.258 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.376e-05/0.1586, allocations: 37.7 kB / 488.9 MB, free: 7.215 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002802/0.1588, allocations: 331.9 kB / 489.2 MB, free: 6.887 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001548/0.159, allocations: 157.8 kB / 489.4 MB, free: 6.73 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002012/0.1592, allocations: 118.1 kB / 489.5 MB, free: 6.605 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.1594, allocations: 362.8 kB / 489.9 MB, free: 6.242 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003772/0.1598, allocations: 229.2 kB / 490.1 MB, free: 6.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004836/0.1603, allocations: 401.7 kB / 490.5 MB, free: 5.559 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002797/0.1631, allocations: 1.324 MB / 491.8 MB, free: 4.137 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.1631, allocations: 4 kB / 491.8 MB, free: 4.133 MB / 366.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001827/0.1649, allocations: 0.9591 MB / 492.8 MB, free: 3.152 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.063e-05/0.165, allocations: 37.69 kB / 492.8 MB, free: 3.109 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.165, allocations: 4 kB / 492.8 MB, free: 3.105 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009477/0.166, allocations: 307.9 kB / 493.1 MB, free: 2.801 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000899/0.1669, allocations: 179.7 kB / 493.3 MB, free: 2.625 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006349/0.1732, allocations: 4.841 MB / 498.1 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003743/0.1736, allocations: 27.98 kB / 498.1 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.86e-05/0.1737, allocations: 27.98 kB / 498.2 MB, free: 13.46 MB / 382.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.000537/0.1742, allocations: 299.3 kB / 498.5 MB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.1744, allocations: 51.34 kB / 498.5 MB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001234/0.1756, allocations: 0.8055 MB / 499.3 MB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/0.1756, allocations: 7.938 kB / 499.3 MB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.1756, allocations: 0 / 499.3 MB, free: 12.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.1757, allocations: 7.922 kB / 499.3 MB, free: 12.22 MB / 382.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.002492/0.1782, allocations: 1.667 MB / 0.4893 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.613e-06/0.1782, allocations: 4.094 kB / 0.4893 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001199/0.1794, allocations: 187.8 kB / 0.4894 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002509/0.1797, allocations: 82.45 kB / 0.4895 GB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.199e-05/0.1797, allocations: 16 kB / 0.4895 GB, free: 10.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003363/0.1831, allocations: 3.965 MB / 0.4934 GB, free: 5.766 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.1831, allocations: 0 / 0.4934 GB, free: 5.766 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00147/0.1846, allocations: 1.118 MB / 0.4945 GB, free: 4.562 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002316/0.1848, allocations: 176.4 kB / 0.4947 GB, free: 4.371 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.343e-05/0.1849, allocations: 15.94 kB / 0.4947 GB, free: 4.355 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002794/0.1852, allocations: 15.98 kB / 0.4947 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.609e-05/0.1853, allocations: 39.89 kB / 0.4947 GB, free: 4.301 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.349e-05/0.1854, allocations: 16 kB / 0.4948 GB, free: 4.285 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003662/0.1858, allocations: 315.1 kB / 0.4951 GB, free: 3.984 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1858, allocations: 0 / 0.4951 GB, free: 3.984 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008444/0.1866, allocations: 164 kB / 0.4952 GB, free: 3.824 MB / 382.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.0002368/0.1869, allocations: 119.2 kB / 0.4953 GB, free: 3.695 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002102/0.189, allocations: 0.9755 MB / 0.4963 GB, free: 2.684 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.189, allocations: 3.938 kB / 0.4963 GB, free: 2.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008041/0.1898, allocations: 0.6422 MB / 0.4969 GB, free: 1.988 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007898/0.1906, allocations: 131.8 kB / 0.497 GB, free: 1.867 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003043/0.1937, allocations: 1.918 MB / 0.4989 GB, free: 15.91 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007517/0.1944, allocations: 0.98 MB / 0.4999 GB, free: 14.9 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004056/0.1948, allocations: 120.7 kB / 0.5 GB, free: 14.78 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001381/0.195, allocations: 39.42 kB / 0.5 GB, free: 14.74 MB / 398.1 MB Notification: Performance of SimCode: time 3.3e-07/0.195, allocations: 0 / 0.5 GB, free: 14.74 MB / 398.1 MB Notification: Performance of Templates: time 0.01442/0.2094, allocations: 7.975 MB / 0.5078 GB, free: 6.836 MB / 398.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