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.001091/0.001091, allocations: 107.7 kB / 16.92 MB, free: 6.145 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.001011/0.001011, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.347/1.347, allocations: 222.9 MB / 241.5 MB, free: 15.25 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1807/0.1807, allocations: 38.04 MB / 329.7 MB, free: 8.844 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 73.03 kB / 398.8 MB, free: 34.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1039, allocations: 58.06 MB / 456.9 MB, free: 8.074 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.007166/0.1111, allocations: 5.709 MB / 462.6 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00686/0.118, allocations: 4.44 MB / 467 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003555/0.1183, allocations: 19.88 kB / 467 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009241/0.1276, allocations: 4.904 MB / 471.9 MB, free: 8.945 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001103/0.1287, allocations: 438 kB / 472.4 MB, free: 8.516 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007258/0.1294, allocations: 267.5 kB / 472.6 MB, free: 8.254 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00247/0.1319, allocations: 1.723 MB / 474.3 MB, free: 6.523 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001158/0.1331, allocations: 0.7274 MB / 475.1 MB, free: 5.797 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009155/0.134, allocations: 474.4 kB / 475.5 MB, free: 5.332 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009541/0.135, allocations: 0.4943 MB / 476 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001226/0.1351, allocations: 76 kB / 476.1 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003533/0.1355, allocations: 147.8 kB / 476.3 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003438/0.1358, allocations: 323.3 kB / 476.6 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004535/0.1363, allocations: 394.2 kB / 477 MB, free: 3.914 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00113/0.1374, allocations: 1.02 MB / 478 MB, free: 2.891 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.1375, allocations: 0 / 478 MB, free: 2.891 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.1375, allocations: 3.938 kB / 478 MB, free: 2.887 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.291e-05/0.1375, allocations: 4 kB / 478 MB, free: 2.883 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.001936/0.1394, allocations: 1.017 MB / 479 MB, free: 1.809 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.1395, allocations: 11.89 kB / 479 MB, free: 1.797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005119/0.14, allocations: 111.9 kB / 479.1 MB, free: 1.688 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001032/0.1411, allocations: 0.6037 MB / 479.7 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.447e-05/0.1412, allocations: 79 kB / 479.8 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.1413, allocations: 59.98 kB / 479.9 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001149/0.1424, allocations: 0.8098 MB / 480.7 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.787e-05/0.1425, allocations: 7.906 kB / 480.7 MB, free: 48 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.967e-05/0.1425, allocations: 23.98 kB / 480.7 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001386/0.1427, allocations: 53.28 kB / 480.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000889/0.1436, allocations: 0.5945 MB / 481.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004091/0.1477, allocations: 2.927 MB / 484.3 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008091/0.1485, allocations: 430.1 kB / 484.7 MB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003319/0.1489, allocations: 230.6 kB / 484.9 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.386e-05/0.1489, allocations: 11.98 kB / 484.9 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004419/0.1494, allocations: 334.5 kB / 485.3 MB, free: 11.31 MB / 366.1 MB Notification: Performance of pre-optimization done (n=42): time 1.953e-06/0.1494, allocations: 0 / 485.3 MB, free: 11.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.003136/0.1525, allocations: 2.047 MB / 487.3 MB, free: 9.105 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.1526, allocations: 144.5 kB / 487.4 MB, free: 8.934 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005169/0.1531, allocations: 441.8 kB / 487.9 MB, free: 8.492 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.999e-05/0.1532, allocations: 37.7 kB / 487.9 MB, free: 8.449 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000253/0.1535, allocations: 327.8 kB / 488.2 MB, free: 8.125 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001416/0.1536, allocations: 165.7 kB / 488.4 MB, free: 7.961 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001641/0.1538, allocations: 114.2 kB / 488.5 MB, free: 7.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.1539, allocations: 362.8 kB / 488.9 MB, free: 7.477 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003418/0.1543, allocations: 229.2 kB / 489.1 MB, free: 7.254 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005497/0.1548, allocations: 397.7 kB / 489.5 MB, free: 6.797 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002878/0.1577, allocations: 1.339 MB / 490.8 MB, free: 5.359 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.1578, allocations: 0 / 490.8 MB, free: 5.359 MB / 366.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001743/0.1595, allocations: 0.967 MB / 491.8 MB, free: 4.371 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.314e-05/0.1596, allocations: 37.8 kB / 491.8 MB, free: 4.328 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.1596, allocations: 8 kB / 491.8 MB, free: 4.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008754/0.1605, allocations: 304.6 kB / 492.1 MB, free: 4.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009995/0.1615, allocations: 179.7 kB / 492.3 MB, free: 3.844 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006822/0.1683, allocations: 5.3 MB / 497.6 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003873/0.1687, allocations: 23.98 kB / 497.6 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.796e-05/0.1688, allocations: 28.08 kB / 497.6 MB, free: 14.22 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.0004476/0.1692, allocations: 303.3 kB / 497.9 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.194e-05/0.1693, allocations: 63.28 kB / 498 MB, free: 13.85 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001215/0.1705, allocations: 0.7955 MB / 498.8 MB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/0.1706, allocations: 7.938 kB / 498.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.1706, allocations: 4 kB / 498.8 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.1706, allocations: 3.984 kB / 498.8 MB, free: 12.98 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.002449/0.173, allocations: 1.662 MB / 0.4887 GB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.1731, allocations: 0 / 0.4887 GB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001285/0.1744, allocations: 191.9 kB / 0.4889 GB, free: 11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002151/0.1746, allocations: 78.45 kB / 0.489 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.002e-05/0.1746, allocations: 23.94 kB / 0.489 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002961/0.1776, allocations: 4.253 MB / 0.4932 GB, free: 6.219 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.1776, allocations: 160 / 0.4932 GB, free: 6.219 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001468/0.1791, allocations: 1.134 MB / 0.4943 GB, free: 5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002195/0.1793, allocations: 172.3 kB / 0.4945 GB, free: 4.812 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.892e-05/0.1794, allocations: 12 kB / 0.4945 GB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002523/0.1797, allocations: 15.98 kB / 0.4945 GB, free: 4.785 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.1798, allocations: 39.89 kB / 0.4945 GB, free: 4.746 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.02e-05/0.1798, allocations: 12 kB / 0.4945 GB, free: 4.734 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003787/0.1802, allocations: 315.1 kB / 0.4948 GB, free: 4.426 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1802, allocations: 4 kB / 0.4948 GB, free: 4.422 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007307/0.1809, allocations: 168 kB / 0.495 GB, free: 4.258 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.0001584/0.1811, allocations: 115.3 kB / 0.4951 GB, free: 4.133 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001897/0.183, allocations: 1.054 MB / 0.4961 GB, free: 3.043 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.183, allocations: 0 / 0.4961 GB, free: 3.043 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000765/0.1838, allocations: 0.6372 MB / 0.4968 GB, free: 2.355 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006859/0.1845, allocations: 140.6 kB / 0.4969 GB, free: 2.227 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002535/0.187, allocations: 1.679 MB / 0.4985 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005939/0.1876, allocations: 0.9761 MB / 0.4995 GB, free: 15.5 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003689/0.188, allocations: 112.7 kB / 0.4996 GB, free: 15.39 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001076/0.1881, allocations: 43.42 kB / 0.4996 GB, free: 15.34 MB / 398.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1881, allocations: 0 / 0.4996 GB, free: 15.34 MB / 398.1 MB Notification: Performance of Templates: time 0.01434/0.2025, allocations: 8.393 MB / 0.5078 GB, free: 7.027 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