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.001605/0.001606, allocations: 104.3 kB / 16.62 MB, free: 6.812 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.001984/0.001984, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.32/1.32, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1713/0.1713, allocations: 38.03 MB / 329.4 MB, free: 9.062 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 61.78 kB / 398.3 MB, free: 34.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1025, allocations: 58.06 MB / 456.3 MB, free: 8.457 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.008481/0.1111, allocations: 6.766 MB / 463.1 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007489/0.1186, allocations: 4.764 MB / 467.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008028/0.1194, allocations: 39.75 kB / 467.9 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009171/0.1286, allocations: 4.952 MB / 472.9 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001237/0.1299, allocations: 414.4 kB / 473.3 MB, free: 7.465 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008332/0.1307, allocations: 251.6 kB / 473.5 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002508/0.1333, allocations: 1.77 MB / 475.3 MB, free: 5.445 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001146/0.1344, allocations: 0.7508 MB / 476 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008287/0.1353, allocations: 474.3 kB / 476.5 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009086/0.1362, allocations: 0.5372 MB / 477 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002135/0.1364, allocations: 72 kB / 477.1 MB, free: 3.617 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004492/0.1369, allocations: 135.9 kB / 477.2 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004611/0.1373, allocations: 331.2 kB / 477.6 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006192/0.138, allocations: 410.1 kB / 478 MB, free: 2.758 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001171/0.1392, allocations: 1.024 MB / 479 MB, free: 1.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1392, allocations: 0 / 479 MB, free: 1.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1392, allocations: 0 / 479 MB, free: 1.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.735e-05/0.1392, allocations: 0 / 479 MB, free: 1.73 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.002341/0.1416, allocations: 1.025 MB / 480 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.1416, allocations: 19.83 kB / 480 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000465/0.1421, allocations: 92.06 kB / 480.1 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001137/0.1432, allocations: 0.6076 MB / 480.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.24e-05/0.1433, allocations: 75 kB / 480.8 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001327/0.1435, allocations: 71.88 kB / 480.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001404/0.1449, allocations: 0.8138 MB / 481.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.65e-05/0.1449, allocations: 7.922 kB / 481.7 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.601e-05/0.145, allocations: 24 kB / 481.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001335/0.1452, allocations: 49.28 kB / 481.8 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009679/0.1461, allocations: 0.5828 MB / 482.4 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004115/0.1503, allocations: 2.939 MB / 485.3 MB, free: 11.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007691/0.151, allocations: 430.1 kB / 485.7 MB, free: 10.74 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003258/0.1514, allocations: 230.6 kB / 485.9 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.941e-05/0.1514, allocations: 7.938 kB / 485.9 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004951/0.1519, allocations: 342.5 kB / 486.3 MB, free: 10.14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=42): time 2.074e-06/0.152, allocations: 0 / 486.3 MB, free: 10.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003188/0.1551, allocations: 2.036 MB / 488.3 MB, free: 7.953 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.882e-05/0.1553, allocations: 140.5 kB / 488.4 MB, free: 7.785 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005489/0.1558, allocations: 449.8 kB / 488.9 MB, free: 7.336 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.313e-05/0.1559, allocations: 29.7 kB / 488.9 MB, free: 7.301 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002707/0.1561, allocations: 339.9 kB / 489.2 MB, free: 6.965 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001602/0.1563, allocations: 157.7 kB / 489.4 MB, free: 6.809 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000199/0.1565, allocations: 118.2 kB / 489.5 MB, free: 6.684 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.1567, allocations: 358.8 kB / 489.9 MB, free: 6.324 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003787/0.1571, allocations: 237.2 kB / 490.1 MB, free: 6.094 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004722/0.1576, allocations: 393.7 kB / 490.5 MB, free: 5.641 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002796/0.1604, allocations: 1.331 MB / 491.8 MB, free: 4.211 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.933e-06/0.1604, allocations: 4 kB / 491.8 MB, free: 4.207 MB / 366.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001825/0.1622, allocations: 0.9591 MB / 492.8 MB, free: 3.227 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.987e-05/0.1623, allocations: 33.7 kB / 492.8 MB, free: 3.188 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.1623, allocations: 4 kB / 492.8 MB, free: 3.184 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009549/0.1632, allocations: 320.1 kB / 493.1 MB, free: 2.867 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009105/0.1642, allocations: 175.7 kB / 493.3 MB, free: 2.695 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007018/0.1712, allocations: 5.305 MB / 498.6 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00046/0.1717, allocations: 31.98 kB / 498.6 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.483e-05/0.1718, allocations: 24 kB / 498.7 MB, free: 13.07 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.0004494/0.1722, allocations: 306.5 kB / 499 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.1723, allocations: 55.28 kB / 499 MB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001203/0.1736, allocations: 0.8055 MB / 499.8 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.1736, allocations: 7.938 kB / 499.8 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.1736, allocations: 3.938 kB / 499.8 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.1736, allocations: 0 / 499.8 MB, free: 11.82 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.002421/0.176, allocations: 1.663 MB / 0.4897 GB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.176, allocations: 4.094 kB / 0.4897 GB, free: 10.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001222/0.1773, allocations: 191.8 kB / 0.4899 GB, free: 9.836 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002404/0.1775, allocations: 78.53 kB / 0.49 GB, free: 9.75 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.088e-05/0.1776, allocations: 15.92 kB / 0.49 GB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003085/0.1807, allocations: 4.257 MB / 0.4942 GB, free: 5.062 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.1807, allocations: 7.969 kB / 0.4942 GB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001476/0.1822, allocations: 1.126 MB / 0.4953 GB, free: 3.844 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002755/0.1825, allocations: 168.4 kB / 0.4954 GB, free: 3.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001077/0.1826, allocations: 27.89 kB / 0.4955 GB, free: 3.633 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002906/0.1829, allocations: 15.98 kB / 0.4955 GB, free: 3.617 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.243e-05/0.183, allocations: 31.95 kB / 0.4955 GB, free: 3.586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.507e-05/0.1831, allocations: 12 kB / 0.4955 GB, free: 3.574 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000451/0.1835, allocations: 319.1 kB / 0.4958 GB, free: 3.266 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1835, allocations: 0 / 0.4958 GB, free: 3.266 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007969/0.1843, allocations: 160 kB / 0.496 GB, free: 3.109 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.0001636/0.1845, allocations: 119.1 kB / 0.4961 GB, free: 2.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002118/0.1866, allocations: 1.042 MB / 0.4971 GB, free: 1.902 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.1867, allocations: 0.8125 kB / 0.4971 GB, free: 1.902 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008397/0.1875, allocations: 0.649 MB / 0.4977 GB, free: 1.203 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000754/0.1883, allocations: 133.1 kB / 0.4979 GB, free: 1.078 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003138/0.1914, allocations: 1.922 MB / 0.4998 GB, free: 15.11 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006747/0.1921, allocations: 0.9799 MB / 0.5007 GB, free: 14.11 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000395/0.1925, allocations: 116.6 kB / 0.5008 GB, free: 13.99 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.1926, allocations: 39.44 kB / 0.5009 GB, free: 13.95 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1926, allocations: 0 / 0.5009 GB, free: 13.95 MB / 398.1 MB Notification: Performance of Templates: time 0.0165/0.2092, allocations: 8.36 MB / 0.509 GB, free: 5.664 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