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.001768/0.001768, allocations: 111.5 kB / 17.29 MB, free: 6.219 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.002429/0.002429, allocations: 193.3 kB / 18.21 MB, free: 5.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.553/2.553, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3058/0.3058, allocations: 38.03 MB / 330.1 MB, free: 9.039 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 66.44 kB / 398.9 MB, free: 34.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1215, allocations: 58.06 MB / 457 MB, free: 8.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.008871/0.1304, allocations: 6.759 MB / 463.8 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009636/0.1401, allocations: 4.773 MB / 468.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001298/0.1415, allocations: 43.75 kB / 468.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01258/0.1541, allocations: 4.959 MB / 473.5 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001843/0.156, allocations: 414.4 kB / 473.9 MB, free: 7.449 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009167/0.1569, allocations: 243.7 kB / 474.2 MB, free: 7.211 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002532/0.1595, allocations: 1.77 MB / 475.9 MB, free: 5.438 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001047/0.1605, allocations: 0.7469 MB / 476.7 MB, free: 4.688 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006849/0.1612, allocations: 482.4 kB / 477.2 MB, free: 4.215 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006926/0.1619, allocations: 0.5372 MB / 477.7 MB, free: 3.676 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.766e-05/0.1621, allocations: 72 kB / 477.8 MB, free: 3.605 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002979/0.1624, allocations: 139.9 kB / 477.9 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003008/0.1627, allocations: 327.2 kB / 478.2 MB, free: 3.148 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003942/0.1631, allocations: 406.1 kB / 478.6 MB, free: 2.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008585/0.1639, allocations: 0.8263 MB / 479.4 MB, free: 1.922 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.955e-06/0.164, allocations: 0 / 479.4 MB, free: 1.922 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.164, allocations: 3.938 kB / 479.5 MB, free: 1.918 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.223e-05/0.164, allocations: 0 / 479.5 MB, free: 1.918 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.002012/0.166, allocations: 1.025 MB / 480.5 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.1661, allocations: 15.89 kB / 480.5 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004556/0.1665, allocations: 100 kB / 480.6 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001069/0.1676, allocations: 0.5999 MB / 481.2 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.049e-05/0.1677, allocations: 78.95 kB / 481.3 MB, free: 0 / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001357/0.1679, allocations: 63.98 kB / 481.3 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001255/0.1691, allocations: 0.8137 MB / 482.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.067e-05/0.1692, allocations: 8 kB / 482.2 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.316e-05/0.1692, allocations: 20 kB / 482.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001339/0.1694, allocations: 49.28 kB / 482.2 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009654/0.1704, allocations: 0.5867 MB / 482.8 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004078/0.1744, allocations: 2.946 MB / 485.8 MB, free: 11.37 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008169/0.1753, allocations: 426.2 kB / 486.2 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003404/0.1756, allocations: 234.6 kB / 486.4 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.732e-05/0.1757, allocations: 4 kB / 486.4 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005055/0.1762, allocations: 338.5 kB / 486.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of pre-optimization done (n=42): time 2.425e-06/0.1762, allocations: 0 / 486.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003341/0.1796, allocations: 2.04 MB / 488.8 MB, free: 8.145 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.1797, allocations: 152.4 kB / 488.9 MB, free: 7.965 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005258/0.1802, allocations: 441.8 kB / 489.4 MB, free: 7.523 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.645e-05/0.1803, allocations: 37.7 kB / 489.4 MB, free: 7.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002556/0.1805, allocations: 335.8 kB / 489.7 MB, free: 7.148 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001509/0.1807, allocations: 157.8 kB / 489.9 MB, free: 6.992 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001903/0.1809, allocations: 118.1 kB / 490 MB, free: 6.867 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.1811, allocations: 362.8 kB / 490.3 MB, free: 6.504 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003675/0.1814, allocations: 233.2 kB / 490.6 MB, free: 6.277 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004954/0.1819, allocations: 393.7 kB / 491 MB, free: 5.824 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002908/0.1849, allocations: 1.328 MB / 492.3 MB, free: 4.398 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.1849, allocations: 4 kB / 492.3 MB, free: 4.395 MB / 366.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.002324/0.1872, allocations: 0.9632 MB / 493.2 MB, free: 3.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.257e-05/0.1873, allocations: 33.7 kB / 493.3 MB, free: 3.371 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/0.1873, allocations: 4 kB / 493.3 MB, free: 3.367 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009817/0.1883, allocations: 315.9 kB / 493.6 MB, free: 3.055 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009917/0.1893, allocations: 171.8 kB / 493.8 MB, free: 2.887 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01024/0.1995, allocations: 5.301 MB / 499.1 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007175/0.2003, allocations: 27.98 kB / 499.1 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001322/0.2005, allocations: 24 kB / 499.1 MB, free: 13.27 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.000881/0.2014, allocations: 311.3 kB / 499.4 MB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002333/0.2016, allocations: 59.28 kB / 499.5 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001989/0.2036, allocations: 0.7976 MB / 0.4885 GB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.354e-05/0.2036, allocations: 7.938 kB / 0.4886 GB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.2037, allocations: 0 / 0.4886 GB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.366e-05/0.2037, allocations: 11.98 kB / 0.4886 GB, free: 12.01 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.004132/0.2078, allocations: 1.659 MB / 0.4902 GB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.848e-06/0.2079, allocations: 3.984 kB / 0.4902 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002005/0.2099, allocations: 191.9 kB / 0.4904 GB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003882/0.2103, allocations: 78.52 kB / 0.4904 GB, free: 9.941 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.534e-05/0.2104, allocations: 19.94 kB / 0.4905 GB, free: 9.922 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004814/0.2152, allocations: 4.261 MB / 0.4946 GB, free: 5.246 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.2153, allocations: 4.062 kB / 0.4946 GB, free: 5.242 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002661/0.218, allocations: 1.126 MB / 0.4957 GB, free: 4.031 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004616/0.2184, allocations: 172.4 kB / 0.4959 GB, free: 3.844 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001637/0.2186, allocations: 11.91 kB / 0.4959 GB, free: 3.832 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005186/0.2192, allocations: 19.98 kB / 0.4959 GB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001791/0.2194, allocations: 35.89 kB / 0.496 GB, free: 3.777 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.33e-05/0.2194, allocations: 16 kB / 0.496 GB, free: 3.762 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007089/0.2202, allocations: 319.1 kB / 0.4963 GB, free: 3.453 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.2202, allocations: 0 / 0.4963 GB, free: 3.453 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001386/0.2216, allocations: 160 kB / 0.4964 GB, free: 3.297 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.0002564/0.2219, allocations: 119.2 kB / 0.4965 GB, free: 3.168 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003289/0.2252, allocations: 1.038 MB / 0.4976 GB, free: 2.094 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.2252, allocations: 0 / 0.4976 GB, free: 2.094 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001297/0.2265, allocations: 0.642 MB / 0.4982 GB, free: 1.402 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001364/0.2279, allocations: 147.2 kB / 0.4983 GB, free: 1.266 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005186/0.2331, allocations: 1.993 MB / 0.5003 GB, free: 15.22 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001073/0.2342, allocations: 0.9722 MB / 0.5012 GB, free: 14.22 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002864/0.2345, allocations: 47.42 kB / 0.5013 GB, free: 14.18 MB / 398.1 MB Notification: Performance of SimCode: time 1.543e-06/0.2345, allocations: 4 kB / 0.5013 GB, free: 14.17 MB / 398.1 MB Notification: Performance of Templates: time 0.3047/0.5392, allocations: 14.63 MB / 0.5156 GB, free: 70.93 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/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