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.001028/0.001028, allocations: 95.09 kB / 16.3 MB, free: 5.656 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.00122/0.00122, allocations: 182 kB / 17.19 MB, free: 5.59 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.209/1.209, allocations: 223.2 MB / 241.1 MB, free: 288 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.166/0.166, allocations: 38.09 MB / 330.3 MB, free: 8.949 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003035/0.0003035, allocations: 8 kB / 400 MB, free: 34.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09031/0.09063, allocations: 59.17 MB / 459.1 MB, free: 7.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.005629/0.0963, allocations: 5.722 MB / 464.9 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005499/0.1018, allocations: 4.418 MB / 469.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004081/0.1023, allocations: 39.75 kB / 469.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003506/0.1058, allocations: 1.672 MB / 471 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007815/0.1066, allocations: 366.9 kB / 471.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000577/0.1072, allocations: 243.5 kB / 471.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005543/0.1077, allocations: 0.5423 MB / 472.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009468/0.1087, allocations: 0.7865 MB / 472.9 MB, free: 9.578 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003684/0.1091, allocations: 326.9 kB / 473.2 MB, free: 9.258 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003719/0.1094, allocations: 334.8 kB / 473.6 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.904e-05/0.1095, allocations: 32 kB / 473.6 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001764/0.1097, allocations: 67.95 kB / 473.7 MB, free: 8.832 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002259/0.1099, allocations: 259.3 kB / 473.9 MB, free: 8.578 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001276/0.1101, allocations: 165.3 kB / 474.1 MB, free: 8.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006356/0.1107, allocations: 0.7986 MB / 474.9 MB, free: 7.609 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.1107, allocations: 0 / 474.9 MB, free: 7.609 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1107, allocations: 0 / 474.9 MB, free: 7.609 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.1107, allocations: 0 / 474.9 MB, free: 7.609 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.001456/0.1122, allocations: 0.8959 MB / 475.8 MB, free: 6.656 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.955e-05/0.1122, allocations: 8.031 kB / 475.8 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003991/0.1126, allocations: 111 kB / 475.9 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009847/0.1136, allocations: 0.5837 MB / 476.5 MB, free: 5.914 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.576e-05/0.1137, allocations: 79 kB / 476.5 MB, free: 5.832 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.696e-05/0.1138, allocations: 71.92 kB / 476.6 MB, free: 5.762 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/0.1149, allocations: 0.7982 MB / 477.4 MB, free: 4.926 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.372e-05/0.1149, allocations: 7.906 kB / 477.4 MB, free: 4.918 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.49e-05/0.115, allocations: 23.94 kB / 477.4 MB, free: 4.895 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001152/0.1151, allocations: 53.28 kB / 477.5 MB, free: 4.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008333/0.116, allocations: 0.5866 MB / 478.1 MB, free: 4.254 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003576/0.1195, allocations: 2.935 MB / 481 MB, free: 1.211 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007018/0.1203, allocations: 430.1 kB / 481.4 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.809e-05/0.1203, allocations: 4.391 kB / 481.4 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004113/0.1207, allocations: 343.5 kB / 481.8 MB, free: 420 kB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 1.933e-06/0.1207, allocations: 0 / 481.8 MB, free: 420 kB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.002781/0.1235, allocations: 2.116 MB / 483.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.944e-05/0.1236, allocations: 136.5 kB / 484 MB, free: 13.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004344/0.124, allocations: 445.8 kB / 484.5 MB, free: 13.51 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.811e-05/0.1241, allocations: 37.7 kB / 484.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002025/0.1243, allocations: 327.9 kB / 484.8 MB, free: 13.14 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001222/0.1244, allocations: 161.7 kB / 485 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.645e-05/0.1245, allocations: 12 kB / 485 MB, free: 12.97 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.1246, allocations: 366.8 kB / 485.3 MB, free: 12.6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003147/0.1249, allocations: 225.2 kB / 485.6 MB, free: 12.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004158/0.1253, allocations: 394.2 kB / 485.9 MB, free: 11.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001818/0.1272, allocations: 0.7502 MB / 486.7 MB, free: 11.15 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.1272, allocations: 0 / 486.7 MB, free: 11.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001541/0.1287, allocations: 0.9592 MB / 487.7 MB, free: 10.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.434e-05/0.1288, allocations: 37.78 kB / 487.7 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.709e-05/0.1288, allocations: 8 kB / 487.7 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008219/0.1296, allocations: 307.8 kB / 488 MB, free: 9.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008954/0.1305, allocations: 175.7 kB / 488.2 MB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00549/0.136, allocations: 4.982 MB / 493.2 MB, free: 4.406 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000345/0.1364, allocations: 27.92 kB / 493.2 MB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.278e-05/0.1365, allocations: 31.98 kB / 493.2 MB, free: 4.348 MB / 366.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $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,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$PRE.relay1.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 1 {3 15} Notification: Performance of prepare postOptimizeDAE: time 0.0003793/0.1368, allocations: 299.3 kB / 493.5 MB, free: 4.039 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.707e-05/0.1369, allocations: 55.3 kB / 493.6 MB, free: 3.984 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001047/0.138, allocations: 0.7977 MB / 494.4 MB, free: 3.129 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.138, allocations: 12.08 kB / 494.4 MB, free: 3.117 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.138, allocations: 0 / 494.4 MB, free: 3.117 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.138, allocations: 7.953 kB / 494.4 MB, free: 3.109 MB / 366.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.002063/0.1401, allocations: 1.67 MB / 496 MB, free: 1.309 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.177e-05/0.1401, allocations: 4 kB / 496.1 MB, free: 1.305 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001157/0.1413, allocations: 187.9 kB / 496.2 MB, free: 1.121 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002016/0.1415, allocations: 78.52 kB / 496.3 MB, free: 1.035 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.663e-05/0.1415, allocations: 19.98 kB / 496.3 MB, free: 1.016 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002536/0.1441, allocations: 3.977 MB / 0.4886 GB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.1441, allocations: 320 / 0.4886 GB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001309/0.1454, allocations: 1.176 MB / 0.4897 GB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002106/0.1456, allocations: 168.5 kB / 0.4899 GB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.458e-05/0.1457, allocations: 15.95 kB / 0.4899 GB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002415/0.1459, allocations: 15.98 kB / 0.4899 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.448e-05/0.146, allocations: 39.89 kB / 0.49 GB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.918e-05/0.1461, allocations: 16 kB / 0.49 GB, free: 11.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003054/0.1464, allocations: 311.1 kB / 0.4903 GB, free: 10.79 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1464, allocations: 0 / 0.4903 GB, free: 10.79 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006222/0.147, allocations: 160 kB / 0.4904 GB, free: 10.63 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001382/0.1472, allocations: 127.1 kB / 0.4905 GB, free: 10.49 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001523/0.1487, allocations: 0.9718 MB / 0.4915 GB, free: 9.484 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1487, allocations: 0 / 0.4915 GB, free: 9.484 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006861/0.1494, allocations: 0.6485 MB / 0.4921 GB, free: 8.785 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000525/0.1499, allocations: 128.9 kB / 0.4922 GB, free: 8.664 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002404/0.1524, allocations: 2.036 MB / 0.4942 GB, free: 6.594 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005625/0.1529, allocations: 0.9916 MB / 0.4952 GB, free: 5.574 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003333/0.1533, allocations: 112.7 kB / 0.4953 GB, free: 5.461 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001055/0.1534, allocations: 43.42 kB / 0.4954 GB, free: 5.418 MB / 382.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1534, allocations: 0 / 0.4954 GB, free: 5.418 MB / 382.1 MB Notification: Performance of Templates: time 0.1969/0.3503, allocations: 7.648 MB / 0.5028 GB, free: 55.11 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches